We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11637b0 commit fb615aeCopy full SHA for fb615ae
main.py
@@ -19,29 +19,6 @@
19
app = Flask(__name__)
20
dbclient = ndb.Client()
21
22
-def wrap_json(obj):
23
- """This method helps send JSON to the client"""
24
- data = json.dumps(obj)
25
- cb = request.args.get('callback')
26
- if cb is None:
27
- cb = request.args.get('jsonp')
28
-
29
- if cb is not None and cb != '':
30
- data = cb + '(' + data + ')'
31
- response = app.response_class(
32
- response=data,
33
- status=200,
34
- mimetype='application/javascript'
35
- )
36
- else:
37
38
39
40
- mimetype='application/json'
41
42
43
- return response
44
45
46
def find_provider_and_service(id):
47
providers = [n for n in settings.SERVICES if n['id'] == id]
0 commit comments