From 42666706d9f409959dcd251ff8b60c1fbe105fa3 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 20 Nov 2016 16:02:45 +0100 Subject: [PATCH] server/util: fix API queries for empty ?options --- server/szurubooru/func/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: