fix: don't output serialize if it is empty

This commit is contained in:
2024-02-19 15:45:28 +01:00
parent f0bd08025e
commit a2b045cf97

View File

@@ -168,7 +168,9 @@ def get_dispatch():
# TODO THIS IS THE NEW MASTER PART
if method and method != "signal":
print([ d.serialize() for d in dispatch_objects])
debug = [ d.serialize() for d in dispatch_objects]
if debug:
print(debug)
return flask.jsonify([ d.serialize() for d in dispatch_objects])
else:
# TODO THIS PART WILL BE REMOVED ##