Skip to content

Commit

Permalink
Overload populate method to accept lists
Browse files Browse the repository at this point in the history
  • Loading branch information
huntfx committed Apr 22, 2021
1 parent bcc9c95 commit cbdffbb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ftrack_query/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

__version__ = '1.6.3'
__version__ = '1.6.4'

import ftrack_api

Expand Down Expand Up @@ -89,3 +89,9 @@ def rollback(self, *args, **kwargs):
"""Rollback changes."""
self._logger.debug('Changes discarded.')
return super(FTrackQuery, self).rollback(*args, **kwargs)

def populate(self, entities, projections):
"""Populate new values."""
if isinstance(projections, (list, tuple, set)):
projections = ','.join(map(str, projections))
return super(FTrackQuery, self).populate(entities, projections)

0 comments on commit cbdffbb

Please sign in to comment.