Replace looping set.add with set.update.
This commit is contained in:
parent
e35efb5c61
commit
a30649b0a8
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue