diff --git a/files/classes/comment.py b/files/classes/comment.py
index 2dc8a5da9c..2b5deb3ddb 100644
--- a/files/classes/comment.py
+++ b/files/classes/comment.py
@@ -23,7 +23,7 @@ class CommentAux(Base):
ban_reason = Column(String(256), default='')
-class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
+class Comment(Base, Age_times):
__tablename__ = "comments"
diff --git a/files/classes/mix_ins.py b/files/classes/mix_ins.py
index 3f642c1d61..d967695d19 100644
--- a/files/classes/mix_ins.py
+++ b/files/classes/mix_ins.py
@@ -15,14 +15,6 @@ class Stndrd:
def created_datetime(self):
return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.created_utc)))
- @property
- @lazy
- def created_iso(self):
-
- t = time.gmtime(self.created_utc)
- return time.strftime("%Y-%m-%dT%H:%M:%S+00:00", t)
-
-
class Age_times:
@property
@@ -109,51 +101,4 @@ class Age_times:
@property
def edited_datetime(self):
- return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.edited_utc)))
-
-class Scores:
-
- @property
- def score_percent(self):
-
- return 101
-
- @property
- def score(self):
- return int(self.score) or 0
-
-
-class Fuzzing:
-
- @property
- def score(self):
-
- real = self.score
- real = int(real)
- if real <= 10:
- return real
-
- k = 0.01
-
- a = math.floor(real * (1 - k))
- b = math.ceil(real * (1 + k))
- return random.randint(a, b)
-
- @property
- def upvotes(self):
-
- if self.upvotes <= 10: return self.upvotes
-
- lower = int(self.upvotes * 0.99)
- upper = int(self.upvotes * 1.01) + 1
-
- return random.randint(lower, upper)
-
- @property
- def downvotes(self):
- if self.downvotes <= 10: return self.downvotes
-
- lower = int(self.downvotes * 0.99)
- upper = int(self.downvotes * 1.01) + 1
-
- return random.randint(lower, upper)
+ return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.edited_utc)))
\ No newline at end of file
diff --git a/files/classes/submission.py b/files/classes/submission.py
index fa16c76157..8102dac644 100644
--- a/files/classes/submission.py
+++ b/files/classes/submission.py
@@ -28,7 +28,7 @@ class SubmissionAux(Base):
embed_url = Column(String(256))
-class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
+class Submission(Base, Age_times):
__tablename__ = "submissions"
diff --git a/files/templates/submission.html b/files/templates/submission.html
index 1e34b97894..2e01e775e6 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -59,7 +59,7 @@
-
+
{% if p.edited_utc %}{% endif %}