Let jsonify.photo expect that tags are sets, not lists.

master
voussoir 2020-09-20 12:06:10 -07:00
parent a8f5f858b7
commit 5c4c0a3034
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def exception(e):
def photo(p, include_albums=True, include_tags=True): def photo(p, include_albums=True, include_tags=True):
tags = p.get_tags() tags = p.get_tags()
tags.sort(key=lambda x: x.name) tags = sorted(tags, key=lambda x: x.name)
j = { j = {
'type': 'photo', 'type': 'photo',
'id': p.id, 'id': p.id,