Update files/helpers/media.py

master
Aevann 2023-09-17 23:03:38 +00:00
parent e59dbe68f7
commit a94171f1e7
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ 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 if v.id == 15014: # Marseygen exception
return 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()