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:
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
configs = json.load(inFile)
|
configs = json.load(inFile)
|
||||||
for i in configs:
|
for i in configs:
|
||||||
|
try :
|
||||||
h, m = configs[i]["time"].split(":")
|
h, m = configs[i]["time"].split(":")
|
||||||
print("\033[36m" + f"config {i} : {h}:{m}" + "\033[0m")
|
print("\033[36m" + f"config {i} : {h}:{m}" + "\033[0m")
|
||||||
TriggerDict[i] = CronTrigger(
|
TriggerDict[i] = CronTrigger(
|
||||||
|
@ -85,6 +86,9 @@ def update_jobs():
|
||||||
scheduler.remove_job(i)
|
scheduler.remove_job(i)
|
||||||
except Exception as e :
|
except Exception as e :
|
||||||
print(f"\033[33merror with deleting config {i} : {e}\033[0m")
|
print(f"\033[33merror with deleting config {i} : {e}\033[0m")
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
|
||||||
|
|
||||||
def edit_version():
|
def edit_version():
|
||||||
with open("/app/MsRewards-Reborn/version", "r") as f:
|
with open("/app/MsRewards-Reborn/version", "r") as f:
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
{%if not current_user.is_authenticated %}
|
{%if not current_user.is_authenticated %}
|
||||||
<h1>Already logged in</h1>
|
<h1>Already logged in</h1>
|
||||||
{% else %}
|
{% 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 %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue