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 ef5d5ce commit b8df5c8Copy full SHA for b8df5c8
app/routes/formatted.py
@@ -3,7 +3,6 @@
3
from ..data import get_data
4
from cachetools import cached, TTLCache
5
6
-
7
@app.route('/formatted')
8
@cached(cache=TTLCache(maxsize=1024, ttl=900))
9
def full():
@@ -48,4 +47,10 @@ def full():
48
47
# add current location to the output
49
output.append(locationOutput)
50
+ outputJSON = jsonify(output)
51
+
52
+ f = open( 'data.json', 'w' )
53
+ f.write(str(output))
54
+ f.close()
55
56
return jsonify(output)
0 commit comments