forked from rDrama/rDrama
1
0
Fork 0

increase file limit to 300 for paypigs

master
Aevann 2023-11-16 15:09:44 +02:00
parent 892503f84b
commit 8a44abe119
1 changed files with 5 additions and 5 deletions

View File

@ -29,11 +29,11 @@ def media_ratelimit(v):
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']:
if SITE != 'watchpeopledie.tv':
print(STARS, flush=True)
print(f'@{v.username} hit the 100 file daily limit!')
print(STARS, flush=True)
limit = 300 if v.patron else 100
if count > limit and v.admin_level < PERMS['USE_ADMIGGER_THREADS']:
print(STARS, flush=True)
print(f'@{v.username} hit the 100 file daily limit!')
print(STARS, flush=True)
abort(500)
def process_files(files, v, body, is_dm=False, dm_user=None):