Use collection.title if collection.sortTitle is None

This commit is contained in:
JonnyWong16 2020-10-08 12:41:47 -07:00
parent 43ab2f22a8
commit d5705a52e9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -182,7 +182,7 @@ def get_collections(section_id=None):
'summary': collection.summary,
'thumb': collection.thumb,
'title': collection.title,
'titleSort': collection.titleSort,
'titleSort': collection.titleSort or collection.title,
'type': collection.type,
'updatedAt': helpers.datetime_to_iso(collection.updatedAt)
}