1. Chris Mutel
  2. brightway2-ui

Source

brightway2-ui / bw2ui / web / utils.py

Diff from to

File bw2ui/web/utils.py

  • Ignore whitespace
 from brightway2 import config, JsonWrapper
+from flask import Response
 import os
 import uuid
 
 
 def get_job_id():
     return uuid.uuid4().hex
+
+
+def json_response(data):
+    return Response(JsonWrapper.dumps(data), mimetype='application/json')