Choose or drop image for upload

Fix up some JS
Update Icons
This commit is contained in:
Michał Gdula 2023-03-23 12:54:00 +00:00
parent 0e1514bf93
commit 69d264739b
13 changed files with 279 additions and 194 deletions

View file

@ -1,7 +1,7 @@
"""
Onlylegs Gallery - Routing
"""
from flask import Blueprint, render_template, url_for
from flask import Blueprint, render_template, url_for, request
from werkzeug.exceptions import abort
from sqlalchemy.orm import sessionmaker
@ -23,6 +23,9 @@ def index():
db.Posts.image_colours,
db.Posts.created_at,
db.Posts.id).order_by(db.Posts.id.desc()).all()
if request.args.get('coffee') == 'please':
abort(418)
return render_template('index.html', images=images)