From 276a8333b7c9d702d8fd3eced09974d332219149 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Sep 2021 20:57:26 +0200 Subject: [PATCH] fs --- files/__main__.py | 2 ++ files/templates/submission.html | 42 ++++++++++----------------------- 2 files changed, 14 insertions(+), 30 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index d54f8703e..6b5298878 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -21,6 +21,8 @@ app = Flask(__name__, template_folder='./templates') app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) app.url_map.strict_slashes = False app.jinja_env.cache = {} +import faulthandler +faulthandler.enable() app.config["SITE_NAME"]=environ.get("SITE_NAME").strip() app.config["COINS_NAME"]=environ.get("COINS_NAME").strip() diff --git a/files/templates/submission.html b/files/templates/submission.html index 7395cb59b..7a5d80de3 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -206,38 +206,20 @@ {% endif %} - {% if p.award_count("stars") %} -{% set sparkles = 10*p.award_count("stars") if p.award_count("stars") <= 5 else 50 %} - - + + {% set minbugs = 10*p.award_count("shit") if p.award_count("shit") <= 5 else 50 %} + {% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") <= 5 else 100 %} + {% endif %}