mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 06:09:04 -06:00
add in secret -1 option to never overwrite
This commit is contained in:
@@ -14,8 +14,9 @@ def check_and_update():
|
|||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
file = {'last_generated' : -1}
|
file = {'last_generated' : -1}
|
||||||
regen = time.time() - 3600 >= file['last_generated']
|
regen = time.time() - 3600 >= file['last_generated']
|
||||||
with open(path, 'w') as file:
|
if file['last_generated'] != -1:
|
||||||
file = json.dump({'last_generated' : int(time.time())}, file)
|
with open(path, 'w') as file:
|
||||||
|
file = json.dump({'last_generated' : int(time.time())}, file)
|
||||||
return regen
|
return regen
|
||||||
|
|
||||||
@app.route('/spotify/')
|
@app.route('/spotify/')
|
||||||
|
|||||||
Reference in New Issue
Block a user