Replace looping set.add with set.update.

This commit is contained in:
voussoir 2020-03-19 17:38:51 -07:00
parent e35efb5c61
commit a30649b0a8

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