Skip to content

Commit e73b95b

Browse files
committed
examples/deepzoom: Assume Flask >= 0.8
1 parent 4b92ee3 commit e73b95b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/deepzoom/deepzoom_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
app.config.from_envvar('DEEPZOOM_TILER_SETTINGS', silent=True)
3939

4040

41-
# With Flask 0.8 and above:
42-
# @app.before_first_request
41+
@app.before_first_request
4342
def load_slide():
4443
slidefile = app.config['DEEPZOOM_SLIDE']
4544
if slidefile is None:
@@ -154,6 +153,5 @@ def slugify(text, delim=u'-'):
154153
app.config['DEEPZOOM_SLIDE'] = args[0]
155154
except IndexError:
156155
pass
157-
load_slide()
158156

159157
app.run(host=opts.host, port=opts.port, threaded=True)

0 commit comments

Comments
 (0)