forked from rDrama/rDrama
1
0
Fork 0
Aevann 2024-01-10 23:34:25 +02:00
parent 1c46262097
commit 95ec83d940
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,12 @@ 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()
limit = 300 if v.patron else 100
if v.patron or (SITE == 'rdrama.net' and v.id == 2158):
limit = 300
else:
limit = 100
if count > limit and v.admin_level < PERMS['USE_ADMIGGER_THREADS']:
print(STARS, flush=True)
print(f'@{v.username} hit the {limit} file daily limit!')