From 1dc63a0b688973034214ff3c74b11505978f8857 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 1 Aug 2021 06:25:26 +0200 Subject: [PATCH] fdfd --- drama/routes/flagging.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drama/routes/flagging.py b/drama/routes/flagging.py index 4e51cf5ae..80eb8be8c 100644 --- a/drama/routes/flagging.py +++ b/drama/routes/flagging.py @@ -12,8 +12,7 @@ def api_flag_post(pid, v): if v: existing = g.db.query(Flag).filter_by( - user_id=v.id, post_id=post.id).filter( - Flag.created_utc >= post.edited_utc).first() + user_id=v.id, post_id=post.id).first() if existing: return "", 409 @@ -37,8 +36,7 @@ def api_flag_comment(cid, v): if v: existing = g.db.query(CommentFlag).filter_by( - user_id=v.id, comment_id=comment.id).filter( - CommentFlag.created_utc >= comment.edited_utc).first() + user_id=v.id, comment_id=comment.id).first() if existing: return "", 409