From 57908aabf2f1c40698c1c295f7a117726f0f5bf1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 7 Mar 2023 02:46:51 +0200 Subject: [PATCH] exclude jannoids with USE_ADMIGGER_THREADS perm from 50 files ratelimit --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 95efcc4ad..a40e85519 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -35,7 +35,7 @@ def remove_media(path): def media_ratelimit(v): t = time.time() - 86400 count = g.db.query(Media).filter(Media.user_id == v.id, Media.created_utc > t).count() - if count > 50: + if count > 50 and v.admin_level < PERMS['USE_ADMIGGER_THREADS']: print(STARS, flush=True) print(f'@{v.username} hit the 50 file daily limit!') print(STARS, flush=True)