Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1935 from pypeclub/bugfix/wrong_addition_ftrack_f…
Browse files Browse the repository at this point in the history
…amily

Fix - ftrack family was added incorrectly in some cases
  • Loading branch information
kalisp authored Aug 13, 2021
2 parents 1484575 + 8a62360 commit d81575b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def process(self, instance):
self.log.debug("Adding ftrack family for '{}'".
format(instance.data.get("family")))

if families and "ftrack" not in families:
instance.data["families"].append("ftrack")
if families:
if "ftrack" not in families:
instance.data["families"].append("ftrack")
else:
instance.data["families"] = ["ftrack"]
else:
Expand Down

0 comments on commit d81575b

Please sign in to comment.