Commit ebe1ebf2 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Fixed indentation.

parent 3dfbc2c5
......@@ -21,7 +21,7 @@ class EPCISEventAPI(Resource):
"""
result = models.EPCISEvent.objects[:10]
if result.count == 0:
return jsonify(result="no epcis event")
return jsonify(result="no epcis event")
epcis_events = [epcis_event.data for epcis_event in result]
return jsonify(result="ok", epcis_events=epcis_events)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment