employeed Sqlalchemy - pool pre ping to help with db connect errors.

This commit is contained in:
Bryan Van Deusen
2025-08-03 22:46:22 -04:00
parent c480a176c2
commit 68cff4e028
3 changed files with 7 additions and 16 deletions
+2 -1
View File
@@ -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)