mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/util: fix API queries for empty ?options
This commit is contained in:
@ -32,7 +32,7 @@ def get_serialization_options(ctx):
|
||||
def serialize_entity(entity, field_factories, options):
|
||||
if not entity:
|
||||
return None
|
||||
if not options:
|
||||
if not options or len(options) == 0:
|
||||
options = field_factories.keys()
|
||||
ret = {}
|
||||
for key in options:
|
||||
|
Reference in New Issue
Block a user