forked from rDrama/rDrama
1
0
Fork 0

restore console error on rdrama

master
Aevann 2023-11-16 14:59:57 +02:00
parent 94bc1039ea
commit 892503f84b
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ 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 > 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)
abort(500)
def process_files(files, v, body, is_dm=False, dm_user=None):