fixed stuff

This commit is contained in:
piair 2023-08-25 14:50:38 +02:00
parent 8acdcae7de
commit c712395d39
2 changed files with 33 additions and 29 deletions

View File

@ -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:

View File

@ -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 %}