diff options
| author | rr- | 2016-11-20 16:02:45 +0100 |
|---|---|---|
| committer | rr- | 2016-11-20 16:02:45 +0100 |
| commit | 42666706d9f409959dcd251ff8b60c1fbe105fa3 (patch) | |
| tree | 52671e4650425001c764745e3387a98ee3bed543 /server | |
| parent | e21a31e72f81a40f35fa12b230f364492e0a99de (diff) | |
server/util: fix API queries for empty ?options
Diffstat (limited to 'server')
| -rw-r--r-- | server/szurubooru/func/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/util.py b/server/szurubooru/func/util.py index ed2777c..14c4440 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: |