forked from rDrama/rDrama
increase file limit to 300 for paypigs
parent
892503f84b
commit
8a44abe119
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue