forked from rDrama/rDrama
increase daily file limit to 75
parent
39654a31e4
commit
54cd63093f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue