mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-18 01:14:59 +00:00
Style with black
This commit is contained in:
parent
51ba6cd0ea
commit
f9bd75e58d
1 changed files with 7 additions and 9 deletions
|
@ -20,20 +20,18 @@ class LoginForm(FlaskForm):
|
||||||
|
|
||||||
@blueprint.route("/")
|
@blueprint.route("/")
|
||||||
def index():
|
def index():
|
||||||
games = (Games.query
|
games = Games.query.filter_by(approved=True).filter_by(visible=True).all()
|
||||||
.filter_by(approved=True)
|
|
||||||
.filter_by(visible=True)
|
|
||||||
.all())
|
|
||||||
return render_template("index.html", games=games)
|
return render_template("index.html", games=games)
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route("/g/<int:game_id>")
|
@blueprint.route("/g/<int:game_id>")
|
||||||
def g(game_id):
|
def g(game_id):
|
||||||
game = (Games.query
|
game = (
|
||||||
.filter_by(id=game_id)
|
Games.query.filter_by(id=game_id)
|
||||||
.filter_by(approved=True)
|
.filter_by(approved=True)
|
||||||
.filter_by(visible=True)
|
.filter_by(visible=True)
|
||||||
.first())
|
.first()
|
||||||
|
)
|
||||||
|
|
||||||
if not game:
|
if not game:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue