From 53ebbe7ebf53510dbaf5a37c325aa2bde3561dc6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 1 Aug 2021 05:25:06 +0200 Subject: [PATCH] fdfdf --- drama/classes/user.py | 1 - drama/mail/mail.py | 1 - drama/routes/admin.py | 1 - drama/routes/flagging.py | 2 -- drama/routes/settings.py | 1 - drama/templates/comments.html | 2 -- drama/templates/submission.html | 8 ++------ drama/templates/submission_listing.html | 5 +---- 8 files changed, 3 insertions(+), 18 deletions(-) diff --git a/drama/classes/user.py b/drama/classes/user.py index f57a33f2c..99b196efb 100644 --- a/drama/classes/user.py +++ b/drama/classes/user.py @@ -540,7 +540,6 @@ class User(Base, Stndrd, Age_times): if not self.has_badge(badge.id): new_badge = Badge(user_id=self.id, badge_id=badge.id, - created_utc=int(time.time()) ) g.db.add(new_badge) diff --git a/drama/mail/mail.py b/drama/mail/mail.py index 1e6073cd2..0d67ad6e7 100644 --- a/drama/mail/mail.py +++ b/drama/mail/mail.py @@ -90,7 +90,6 @@ def activate(v): if not any([b.badge_id == 2 for b in user.badges]): mail_badge = Badge(user_id=user.id, badge_id=2, - created_utc=time.time()) g.db.add(mail_badge) g.db.add(user) diff --git a/drama/routes/admin.py b/drama/routes/admin.py index 687e8f03c..2679f0459 100644 --- a/drama/routes/admin.py +++ b/drama/routes/admin.py @@ -166,7 +166,6 @@ def badge_grant_post(v): new_badge = Badge(badge_id=badge_id, user_id=user.id, - created_utc=int(time.time()) ) desc = request.form.get("description") diff --git a/drama/routes/flagging.py b/drama/routes/flagging.py index 156dd072c..4e51cf5ae 100644 --- a/drama/routes/flagging.py +++ b/drama/routes/flagging.py @@ -21,7 +21,6 @@ def api_flag_post(pid, v): flag = Flag(post_id=post.id, user_id=v.id, reason=reason, - created_utc=int(time.time()) ) @@ -48,7 +47,6 @@ def api_flag_comment(cid, v): flag = CommentFlag(comment_id=comment.id, user_id=v.id, reason=reason, - created_utc=int(time.time()) ) g.db.add(flag) diff --git a/drama/routes/settings.py b/drama/routes/settings.py index 4429e3837..4c50c25f3 100644 --- a/drama/routes/settings.py +++ b/drama/routes/settings.py @@ -459,7 +459,6 @@ def settings_block_user(v): new_block = UserBlock(user_id=v.id, target_id=user.id, - created_utc=int(time.time()) ) g.db.add(new_block) diff --git a/drama/templates/comments.html b/drama/templates/comments.html index 1ec6b0974..21820d13b 100644 --- a/drama/templates/comments.html +++ b/drama/templates/comments.html @@ -422,9 +422,7 @@
  • Context
  • - {% if not (v and v.id==c.author_id) %}
  • Report
  • - {% endif %} {% if v and c.parent_submission and c.author_id==v.id %}
  • Edit
  • diff --git a/drama/templates/submission.html b/drama/templates/submission.html index 73e62ea97..55e30e0e1 100644 --- a/drama/templates/submission.html +++ b/drama/templates/submission.html @@ -95,9 +95,7 @@