From dec1f0d8abf0f8e1a8664e5b74bde7afd5ea5809 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 12 Feb 2022 23:02:34 +0200 Subject: [PATCH] fgd --- files/classes/comment.py | 2 -- files/classes/submission.py | 2 -- files/templates/submission.html | 8 ++++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 64b2235b27..2625f1c467 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -361,8 +361,6 @@ class Comment(Base): amount = randint(0, 3) self.upvotes += amount g.db.add(self) - self.author.coins += amount - g.db.add(self.author) g.db.commit() for c in self.options: diff --git a/files/classes/submission.py b/files/classes/submission.py index bb4a421029..55d3be57c6 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -380,8 +380,6 @@ class Submission(Base): self.views += amount*random.randint(3, 5) self.upvotes += amount g.db.add(self) - self.author.coins += amount - g.db.add(self.author) g.db.commit() for c in self.options: diff --git a/files/templates/submission.html b/files/templates/submission.html index 673cff48a8..aa4dbeabf8 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -228,25 +228,25 @@ } - :#marseyscooter: + :#marseyscooter: {% endif %} {% if p.award_count("scooter") > 1 %} - :#marseyscooter: + :#marseyscooter: {% endif %} {% if p.award_count("scooter") > 2 %} - :#marseyscooter: + :#marseyscooter: {% endif %} {% if p.award_count("scooter") > 3 %} - :#marseyscooter: + :#marseyscooter: {% endif %}