From b0797c44938b63e230cbc48fb31167ea7ed2db8a Mon Sep 17 00:00:00 2001 From: mummified-corroding-granny Date: Thu, 2 Feb 2023 16:54:52 +0000 Subject: [PATCH] fix-small-tisms that I had piled up in my todo (#109) fix-small-tisms that I had piled up in my todo Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/109 Co-authored-by: mummified-corroding-granny Co-committed-by: mummified-corroding-granny --- files/assets/css/main.css | 4 ++++ files/classes/submission.py | 4 +--- files/routes/users.py | 2 +- files/templates/modals/emoji.html | 2 +- files/templates/rules_rDrama.html | 2 +- files/templates/shop.html | 6 +++--- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 227f3c8d1..dd4ca5e36 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5562,6 +5562,10 @@ th, td { font-weight: 700; } +.discounted-price { + text-decoration: line-through; +} + .fas { text-align: center; } diff --git a/files/classes/submission.py b/files/classes/submission.py index 9168e4df8..b147c2562 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -199,7 +199,6 @@ class Submission(Base): 'url': self.realurl(None), 'body': self.body, 'body_html': self.body_html, - 'created_utc': self.created_utc, 'edited_utc': self.edited_utc or 0, 'comment_count': self.comment_count, 'score': self.score, @@ -210,8 +209,7 @@ class Submission(Base): 'distinguish_level': self.distinguish_level, 'voted': self.voted if hasattr(self, 'voted') else 0, 'flags': flags, - 'author': 'đź‘»' if self.ghost else self.author.json, - 'comment_count': self.comment_count + 'author': 'đź‘»' if self.ghost else self.author.json } if "replies" in self.__dict__: diff --git a/files/routes/users.py b/files/routes/users.py index 0a1ee849b..22cae1d1b 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1376,7 +1376,7 @@ def gumroad(): print(f'user: {user}', flush=True) if user: - claim_rewards(user) + claim_rewards(user) print("/gumroad done\n\n\n-----------------------\n\n\n", flush=True) diff --git a/files/templates/modals/emoji.html b/files/templates/modals/emoji.html index 06051b252..790970604 100644 --- a/files/templates/modals/emoji.html +++ b/files/templates/modals/emoji.html @@ -47,7 +47,7 @@