increase daily file limit to 75

pull/142/head
Aevann 2023-03-22 09:47:19 +02:00
parent 39654a31e4
commit 54cd63093f
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ def remove_media_using_link(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 and v.admin_level < PERMS['USE_ADMIGGER_THREADS']:
if count > 75 and v.admin_level < PERMS['USE_ADMIGGER_THREADS']:
print(STARS, flush=True)
print(f'@{v.username} hit the 50 file daily limit!')
print(f'@{v.username} hit the 75 file daily limit!')
print(STARS, flush=True)
abort(500)