mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-14 14:22:16 +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("/")
|
||||
def index():
|
||||
games = (Games.query
|
||||
.filter_by(approved=True)
|
||||
.filter_by(visible=True)
|
||||
.all())
|
||||
games = Games.query.filter_by(approved=True).filter_by(visible=True).all()
|
||||
return render_template("index.html", games=games)
|
||||
|
||||
|
||||
@blueprint.route("/g/<int:game_id>")
|
||||
def g(game_id):
|
||||
game = (Games.query
|
||||
.filter_by(id=game_id)
|
||||
.filter_by(approved=True)
|
||||
.filter_by(visible=True)
|
||||
.first())
|
||||
game = (
|
||||
Games.query.filter_by(id=game_id)
|
||||
.filter_by(approved=True)
|
||||
.filter_by(visible=True)
|
||||
.first()
|
||||
)
|
||||
|
||||
if not game:
|
||||
abort(404)
|
||||
|
|
Loading…
Add table
Reference in a new issue