mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-21 10:34:52 +00:00
start working on adding more game info
This commit is contained in:
parent
e6794d42af
commit
9676819871
4 changed files with 32 additions and 18 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue