mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-28 22:03:10 +00:00
general stuffs :3
This commit is contained in:
parent
54cb3015dc
commit
92a94c66ac
4 changed files with 17 additions and 18 deletions
|
@ -34,15 +34,14 @@ def index():
|
|||
)
|
||||
else:
|
||||
user = Users.query.filter_by(username=user_arg).first()
|
||||
# get all tags from the junction table and add them to a list of tags
|
||||
tags = (
|
||||
db.session.query(Tags)
|
||||
.join(TagJunction)
|
||||
.filter(TagJunction.user_id == user.id)
|
||||
.all()
|
||||
)
|
||||
if user:
|
||||
scores = scores.filter_by(user_id=user.id)
|
||||
tags = (
|
||||
db.session.query(Tags)
|
||||
.join(TagJunction)
|
||||
.filter(TagJunction.user_id == user.id)
|
||||
.all()
|
||||
)
|
||||
else:
|
||||
abort(404, "User not found")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue