mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-14 14:22:16 +00:00
general stuffs :3
This commit is contained in:
parent
54cb3015dc
commit
92a94c66ac
4 changed files with 17 additions and 18 deletions
|
@ -9,12 +9,12 @@ UPLOAD_EXTENSIONS = ["png", "jpg", "jpeg", "gif", "webp"]
|
|||
UPLOAD_RESOLUTION = 169
|
||||
UPLOAD_MAX_SIZE = 3 * 1024 * 1024 # 3MB
|
||||
|
||||
GAME_VERSION = "alpha"
|
||||
GAME_VERSION = "alpha-expo"
|
||||
GAME_DIFFICULTY = 0
|
||||
|
||||
GAME_VERSIONS = {
|
||||
"alpha": "Alpha",
|
||||
"alpha-expo": "Alpha (Expo Build)",
|
||||
"alpha": "Alpha",
|
||||
}
|
||||
GAME_DIFFICULTIES = {
|
||||
0: "Easy - Level 1",
|
||||
|
|
|
@ -86,7 +86,6 @@ class Users(db.Model, UserMixin):
|
|||
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
alt_id = db.Column(db.String, nullable=False, unique=True)
|
||||
superuser = db.Column(db.Boolean, default=False)
|
||||
|
||||
picture = db.Column(db.String)
|
||||
|
||||
|
|
|
@ -51,14 +51,15 @@
|
|||
|
||||
<p>Joined {{ user.joined_at|timesince }}</p>
|
||||
|
||||
{% if user.discord or user.twitter or user.twitch or user.youtube %}
|
||||
<hr>
|
||||
|
||||
<div class="profile-links">
|
||||
{% if user.discord %}<button class="discord"><i class="ph ph-discord-logo"></i></button>{% endif %}
|
||||
{% if user.twitter %}<a href="https://twitter.com/{{ user.twitter }}" class="twitter"><i class="ph ph-twitter-logo"></i></a>{% endif %}
|
||||
{% if user.twitch %}<a href="https://twitch.com/{{ user.twitch }}" class="twitch"><i class="ph ph-twitch-logo"></i></a>{% endif %}
|
||||
{% if user.youtube %}<a href="https://youtube.com/{{ user.youtube }}" class="youtube"><i class="ph ph-youtube-logo"></i></a>{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -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
|
||||
if user:
|
||||
scores = scores.filter_by(user_id=user.id)
|
||||
tags = (
|
||||
db.session.query(Tags)
|
||||
.join(TagJunction)
|
||||
.filter(TagJunction.user_id == user.id)
|
||||
.all()
|
||||
)
|
||||
if user:
|
||||
scores = scores.filter_by(user_id=user.id)
|
||||
else:
|
||||
abort(404, "User not found")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue