From a956d2a149a9b79e9c061a5e2f25005e3a81cd0a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Sep 2021 21:45:17 +0200 Subject: [PATCH] fsfsd --- files/classes/comment.py | 6 +++--- files/classes/mix_ins.py | 6 +++--- files/classes/submission.py | 6 +++--- files/templates/submission.html | 4 ++-- files/templates/submission_banned.html | 2 +- files/templates/submission_listing.html | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 1adee69b3..2dc8a5da9 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -167,9 +167,9 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): 'is_pinned': self.is_pinned, 'distinguish_level': self.distinguish_level, 'post_id': self.post.id, - 'score': self.score_fuzzed, - 'upvotes': self.upvotes_fuzzed, - 'downvotes': self.downvotes_fuzzed, + 'score': self.score, + 'upvotes': self.upvotes, + 'downvotes': self.downvotes, #'award_count': self.award_count, 'is_bot': self.is_bot, 'flags': flags, diff --git a/files/classes/mix_ins.py b/files/classes/mix_ins.py index 6c409d341..3f642c1d6 100644 --- a/files/classes/mix_ins.py +++ b/files/classes/mix_ins.py @@ -126,7 +126,7 @@ class Scores: class Fuzzing: @property - def score_fuzzed(self): + def score(self): real = self.score real = int(real) @@ -140,7 +140,7 @@ class Fuzzing: return random.randint(a, b) @property - def upvotes_fuzzed(self): + def upvotes(self): if self.upvotes <= 10: return self.upvotes @@ -150,7 +150,7 @@ class Fuzzing: return random.randint(lower, upper) @property - def downvotes_fuzzed(self): + def downvotes(self): if self.downvotes <= 10: return self.downvotes lower = int(self.downvotes * 0.99) diff --git a/files/classes/submission.py b/files/classes/submission.py index 7574653ef..fa16c7615 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -222,9 +222,9 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing): 'created_utc': self.created_utc, 'edited_utc': self.edited_utc or 0, 'comment_count': self.comment_count, - 'score': self.score_fuzzed, - 'upvotes': self.upvotes_fuzzed, - 'downvotes': self.downvotes_fuzzed, + 'score': self.score, + 'upvotes': self.upvotes, + 'downvotes': self.downvotes, 'stickied': self.stickied, 'distinguish_level': self.distinguish_level, #'award_count': self.award_count, diff --git a/files/templates/submission.html b/files/templates/submission.html index 499c6a305..1e34b9789 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -10,8 +10,8 @@ {% set title=p.realtitle(v) %} -{% set ups=p.upvotes_fuzzed %} -{% set downs=p.downvotes_fuzzed %} +{% set ups=p.upvotes %} +{% set downs=p.downvotes %} {% set score=ups-downs %} {% if v %} diff --git a/files/templates/submission_banned.html b/files/templates/submission_banned.html index 572dc2a40..9844bf7ae 100644 --- a/files/templates/submission_banned.html +++ b/files/templates/submission_banned.html @@ -1,6 +1,6 @@ {% extends "submission.html" %} -{% set score=p.score_fuzzed %} +{% set score=p.score %} {% if v %} {% set voted=p.voted %} {% set adjust=voted %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index c5b0549b8..c4828f76e 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -9,8 +9,8 @@ {% endif %} -{% set ups=p.upvotes_fuzzed %} -{% set downs=p.downvotes_fuzzed %} +{% set ups=p.upvotes %} +{% set downs=p.downvotes %} {% set score=ups-downs %} {% if v %}