forked from MarseyWorld/MarseyWorld
Update files/helpers/media.py
parent
e59dbe68f7
commit
a94171f1e7
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue