mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-06 06:21:36 +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
|
||||
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 ##
|
||||
|
||||
Reference in New Issue
Block a user