Skip to content

Commit

Permalink
Merge pull request #41 from shotgunsoftware/ShotgunFozzie-patch-1
Browse files Browse the repository at this point in the history
Update statusFlipDownstreamTasks.py
  • Loading branch information
pboucher committed Apr 7, 2016
2 parents 8627075 + 3ef7b18 commit 93ba0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examplePlugins/statusFlipDownstreamTasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def registerCallbacks(reg):
def flipDownstreamTasks(sg, logger, event, args):
"""Flip downstream Tasks to 'rdy' if all of their upstream Tasks are 'fin'"""

# we only care about Tasks that have been finalled
if 'new_value' not in event['meta'] or event['meta']['new_value'] != 'fin':
# we only care about Tasks that have been finalled, and skip events where entity field is empty
if 'new_value' not in event['meta'] or event['meta']['new_value'] != 'fin' or event['entity'] is None:
return

# downtream tasks that are currently wtg
Expand Down

0 comments on commit 93ba0ef

Please sign in to comment.