diff --git a/DV8-Expo/website/routes.py b/DV8-Expo/website/routes.py index 1d25ecd..c42b310 100644 --- a/DV8-Expo/website/routes.py +++ b/DV8-Expo/website/routes.py @@ -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/") 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)