summaryrefslogtreecommitdiff
path: root/geshem.py
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2016-01-02 01:23:14 +0200
committerYuval Adam <yuval@y3xz.com>2016-01-02 01:23:14 +0200
commit7831cf281921fdab1ac652528451100bf3479206 (patch)
tree934ddb317c083207bc930e317d6e73a170cf8dc5 /geshem.py
parent8ffcc2bbd0460616495d18feb74763f31a459c1d (diff)
Render imgs into global state
Diffstat (limited to 'geshem.py')
-rw-r--r--geshem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/geshem.py b/geshem.py
index 95eb4d5..b06b8e9 100644
--- a/geshem.py
+++ b/geshem.py
@@ -48,11 +48,11 @@ def get_imgs():
'140': img_140_files[:7],
'280': img_280_files[:7]
}
- return jsonify(imgs)
+ return imgs
@app.route('/')
def home():
- return render_template('index.html')
+ return render_template('index.html', imgs=get_imgs())
@app.after_request