start working on adding more game info

This commit is contained in:
Michał Gdula 2023-05-20 14:46:49 +01:00
parent e6794d42af
commit 9676819871
4 changed files with 32 additions and 18 deletions

View file

@ -1,10 +1,9 @@
from flask import Blueprint, render_template, redirect, flash, abort
from flask_login import login_user, logout_user, login_required, current_user
from flask_login import login_user, logout_user, login_required
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired
from website.models import Users, Games
from website.extensions import db
from website.models import Users, Games, Images, Authors, Tags
blueprint = Blueprint("website", __name__)
@ -36,6 +35,11 @@ def g(game_id):
if not game:
abort(404)
# TODO: Add images, authors, and tags to the game page
# images = Images.query.filter_by(game_id=game_id).all()
# authors = Authors.query.filter_id(game_id=game_id).all()
# tags = Tags.query.filter_by(game_id=game_id).all()
return render_template("game.html", game=game)