Add Marseygen exception. (#171)

I'll submit a rollback tomorrow for this.

Co-authored-by: float-trip <float-trip@fsdfsd.net>
Reviewed-on: #171
Co-authored-by: float-trip <float-trip@noreply.fsdfsd.net>
Co-committed-by: float-trip <float-trip@noreply.fsdfsd.net>
pull/172/head
float-trip 2023-07-20 21:26:59 +00:00 committed by Aevann
parent 7a0d2c7936
commit a4d19ec391
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']: