Add Marseygen exception. #171

Merged
Aevann merged 1 commits from :mgen-exception into master 2023-07-20 21:27:00 +00:00
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']: