Skip to content
Permalink
Browse files

Fix tag pages not having stats

Along with enabling storing of emoji in names
  • Loading branch information...
Smashman committed Oct 26, 2016
1 parent 531750c commit fb0f2b4746a55a1fde60c7b574c6a9014c9e8fc1
Showing with 5 additions and 3 deletions.
  1. +2 −0 app/mods/views.py
  2. +1 −1 app/users/models.py
  3. +2 −2 settings.py
@@ -33,6 +33,8 @@ def tag(tag_id=None):
if not tag_info:
return abort(404)
mods = enabled_mods().filter(Mod.tags.any(Tag.id == tag_id)).limit(18).all()
for mod in mods:
mod_stats = get_mod_stats(mod)
return render_template('mods/tag.html', mods=mods, tag_info=tag_info, bg_num=tag_info.bg_num,
tag_theme=tag_info.id if tag_info.css else None,
title=tag_info.id.capitalize() + " tagged mods")
@@ -23,7 +23,7 @@ def is_uploader():
class User(db.Model):
__tablename__ = "users"
account_id = db.Column(db.Integer, primary_key=True, autoincrement=False)
name = db.Column(db.String(256, collation="utf8_swedish_ci"), default=account_id)
name = db.Column(db.String(512, collation="utf8mb4_unicode_ci"), default=account_id)
profile_url = db.Column(db.String(128))
avatar_small = db.Column(db.String(128))
avatar_medium = db.Column(db.String(128))
@@ -4,5 +4,5 @@
GAME = "tf2"
DATE_STRING_FORMAT = "%d %b %Y, %H:%M UTC"
# THEME
THEME = "frontline"
BG_NUM = 2
THEME = "halloween"
BG_NUM = 3

0 comments on commit fb0f2b4

Please sign in to comment.
You can’t perform that action at this time.