fixed stuff
This commit is contained in:
parent
8acdcae7de
commit
c712395d39
@ -58,6 +58,7 @@ def update_jobs():
|
||||
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||
configs = json.load(inFile)
|
||||
for i in configs:
|
||||
try :
|
||||
h, m = configs[i]["time"].split(":")
|
||||
print("\033[36m" + f"config {i} : {h}:{m}" + "\033[0m")
|
||||
TriggerDict[i] = CronTrigger(
|
||||
@ -85,6 +86,9 @@ def update_jobs():
|
||||
scheduler.remove_job(i)
|
||||
except Exception as e :
|
||||
print(f"\033[33merror with deleting config {i} : {e}\033[0m")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
def edit_version():
|
||||
with open("/app/MsRewards-Reborn/version", "r") as f:
|
||||
|
@ -39,10 +39,10 @@
|
||||
{%if not current_user.is_authenticated %}
|
||||
<h1>Already logged in</h1>
|
||||
{% else %}
|
||||
{{configs}}
|
||||
{% for i in configs %}
|
||||
|
||||
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
|
||||
|
||||
{% for i in data %}
|
||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user