remotes/1693045480750635534/spooky-22
Aevann1 2021-09-18 21:45:17 +02:00
parent a7acb82dca
commit a956d2a149
6 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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,

View File

@ -10,8 +10,8 @@
</script>
{% 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 %}

View File

@ -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 %}

View File

@ -9,8 +9,8 @@
{% endif %}
</script>
{% set ups=p.upvotes_fuzzed %}
{% set downs=p.downvotes_fuzzed %}
{% set ups=p.upvotes %}
{% set downs=p.downvotes %}
{% set score=ups-downs %}
{% if v %}