mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-11 00:38:32 +01:00
fix: don't output serialize if it is empty
This commit is contained in:
@@ -168,7 +168,9 @@ def get_dispatch():
|
|||||||
|
|
||||||
# TODO THIS IS THE NEW MASTER PART
|
# TODO THIS IS THE NEW MASTER PART
|
||||||
if method and method != "signal":
|
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])
|
return flask.jsonify([ d.serialize() for d in dispatch_objects])
|
||||||
else:
|
else:
|
||||||
# TODO THIS PART WILL BE REMOVED ##
|
# TODO THIS PART WILL BE REMOVED ##
|
||||||
|
|||||||
Reference in New Issue
Block a user