From 55c758f6e66c40cfc8f2b0d07e3070c4c377bfff Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Sep 2021 19:43:45 +0200 Subject: [PATCH] dfs --- files/routes/users.py | 2 ++ files/templates/default.html | 4 ++-- files/templates/submission.html | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 1755c6ec17..288117e4fc 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -646,6 +646,8 @@ def unfollow_user(username, v): target = get_user(username) + if target.id == 995: abort(403) + # check for existing follow follow = g.db.query(Follow).options(lazyload('*')).filter_by(user_id=v.id, target_id=target.id).first() diff --git a/files/templates/default.html b/files/templates/default.html index dc2844490d..406c7f9c15 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -6,7 +6,7 @@ {% if v and v.agendaposter %} - - + {% set minbugs = 10*p.award_count("shit") if p.award_count("shit") < 3 else 20 %} {% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") < 3 else 40 %} - + {% set minbugs = 10*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 20 %} {% set maxbugs = 20*p.award_count("fireflies") if p.award_count("fireflies") < 3 else 40 %} -