employeed Sqlalchemy - pool pre ping to help with db connect errors.
This commit is contained in:
+2
-1
@@ -21,7 +21,8 @@ def index():
|
||||
background_url = None
|
||||
|
||||
if image:
|
||||
filename = image.filepath.replace('/images/', '')
|
||||
path = image.thumb_path or image.filepath
|
||||
filename = path.replace('/images/', '')
|
||||
background_url = url_for('main.serve_image', filename=filename)
|
||||
|
||||
return render_template('index.html', background_url=background_url)
|
||||
|
||||
Reference in New Issue
Block a user