forked from rDrama/rDrama
Add Marseygen exception. (#171)
I'll submit a rollback tomorrow for this. Co-authored-by: float-trip <float-trip@fsdfsd.net> Reviewed-on: rDrama/rDrama#171 Co-authored-by: float-trip <float-trip@noreply.fsdfsd.net> Co-committed-by: float-trip <float-trip@noreply.fsdfsd.net>master
parent
7a0d2c7936
commit
a4d19ec391
|
@ -25,6 +25,8 @@ def remove_media_using_link(path):
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
|
|
||||||
def media_ratelimit(v):
|
def media_ratelimit(v):
|
||||||
|
if v.id == 15014: # Marseygen exception for a day
|
||||||
|
return
|
||||||
t = time.time() - 86400
|
t = time.time() - 86400
|
||||||
count = g.db.query(Media).filter(Media.user_id == v.id, Media.created_utc > t).count()
|
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 count > 100 and v.admin_level < PERMS['USE_ADMIGGER_THREADS']:
|
||||||
|
|
Loading…
Reference in New Issue