From a4d19ec391152e6aa6e9519f8858df8845d01af8 Mon Sep 17 00:00:00 2001 From: float-trip Date: Thu, 20 Jul 2023 21:26:59 +0000 Subject: [PATCH] Add Marseygen exception. (#171) I'll submit a rollback tomorrow for this. Co-authored-by: float-trip Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/171 Co-authored-by: float-trip Co-committed-by: float-trip --- files/helpers/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/media.py b/files/helpers/media.py index ab0cf9b17..28b157980 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -25,6 +25,8 @@ def remove_media_using_link(path): os.remove(path) def media_ratelimit(v): + if v.id == 15014: # Marseygen exception for a day + return t = time.time() - 86400 count = g.db.query(Media).filter(Media.user_id == v.id, Media.created_utc > t).count() if count > 100 and v.admin_level < PERMS['USE_ADMIGGER_THREADS']: