Add Marseygen exception.

pull/171/head
float-trip 2023-07-20 19:21:48 +00:00
parent 16fb709c00
commit bf27b13ed9
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ def remove_media_using_link(path):
os.remove(path)
def media_ratelimit(v):
if v.id == 15014: # Marseygen exception for a day
return
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']: