Replace looping set.add with set.update.

master
voussoir 2020-03-19 17:38:51 -07:00
parent e35efb5c61
commit a30649b0a8
1 changed files with 1 additions and 2 deletions

View File

@ -408,8 +408,7 @@ def get_search_core():
# TAGS ON THIS PAGE # TAGS ON THIS PAGE
total_tags = set() total_tags = set()
for photo in photos: for photo in photos:
for tag in photo.get_tags(): total_tags.update(photo.get_tags())
total_tags.add(tag)
total_tags = sorted(total_tags, key=lambda t: t.name) total_tags = sorted(total_tags, key=lambda t: t.name)
# PREV-NEXT PAGE URLS # PREV-NEXT PAGE URLS