Skip to content

Commit cbdffbb

Browse files
committed
Overload populate method to accept lists
1 parent bcc9c95 commit cbdffbb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ftrack_query/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
__all__ = ['FTrackQuery', 'entity', 'and_', 'or_', 'not_', 'event']
1010

11-
__version__ = '1.6.3'
11+
__version__ = '1.6.4'
1212

1313
import ftrack_api
1414

@@ -89,3 +89,9 @@ def rollback(self, *args, **kwargs):
8989
"""Rollback changes."""
9090
self._logger.debug('Changes discarded.')
9191
return super(FTrackQuery, self).rollback(*args, **kwargs)
92+
93+
def populate(self, entities, projections):
94+
"""Populate new values."""
95+
if isinstance(projections, (list, tuple, set)):
96+
projections = ','.join(map(str, projections))
97+
return super(FTrackQuery, self).populate(entities, projections)

0 commit comments

Comments
 (0)