42Cummer commited on
Commit
27323df
·
verified ·
1 Parent(s): a992212

Update app.py

Browse files

fuck i keep double jsonifying

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -105,7 +105,8 @@ def get_vehicle_destinations(vehicle_numbers):
105
  vehicle_info[vid] = destination
106
 
107
  # Now vehicle_info is a dict mapping vehicle IDs to their info
108
- return jsonify(vehicle_info)
 
109
 
110
  @app.route('/', methods=['GET'])
111
  def health_check():
 
105
  vehicle_info[vid] = destination
106
 
107
  # Now vehicle_info is a dict mapping vehicle IDs to their info
108
+ return vehicle_info # cannot double jsonify!
109
+
110
 
111
  @app.route('/', methods=['GET'])
112
  def health_check():