forked from rDrama/rDrama
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/5717192#context
parent
1c46262097
commit
95ec83d940
|
@ -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!')
|
||||
|
|
Loading…
Reference in New Issue