Skip to content

Commit

Permalink
Merge pull request #297 from sim6/fix_duplicated_tags_from_tasks
Browse files Browse the repository at this point in the history
Fix duplicated tags from tasks
  • Loading branch information
mrvladus authored May 23, 2024
2 parents 7bc6473 + 532afc9 commit c037b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errands/lib/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ def add_tag(self, tag: str) -> None:
self.tags = new_tags

def update_tags(self) -> None:
tasks_tags_texts: list[str] = []
tasks_tags_texts: set[str] = set()
for task in self.tasks:
tasks_tags_texts.extend(task.tags)
tasks_tags_texts.update(task.tags)

current_tags = self.tags
current_tags_texts = [t.text for t in current_tags]
Expand Down

0 comments on commit c037b00

Please sign in to comment.