diff --git a/server/szurubooru/func/util.py b/server/szurubooru/func/util.py index ed2777ce..14c4440b 100644 --- a/server/szurubooru/func/util.py +++ b/server/szurubooru/func/util.py @@ -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: