Skip to content

Commit

Permalink
rules: new task flags and tags do not take them from shot
Browse files Browse the repository at this point in the history
  • Loading branch information
timurhai committed Oct 1, 2024
1 parent a98d2cf commit 787640f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rules/rulib/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ def setTask(self, name=None, tags=None, artists=None, flags=None, progress=None,


# Remove status tags, artists and flags if the task has the same
for arr in ['tags','artists','flags']:
if arr in self.data and len(self.data[arr]):
for item in task[arr]:
if item in self.data[arr]:
self.data[arr].remove(item)
#for arr in ['tags','artists','flags']:
# if arr in self.data and len(self.data[arr]):
# for item in task[arr]:
# if item in self.data[arr]:
# self.data[arr].remove(item)

# Set task changed.
# It needed for news to know what was changed in status.
Expand Down

0 comments on commit 787640f

Please sign in to comment.