maybe the last update

This commit is contained in:
piair
2023-06-18 19:21:02 +02:00
parent 4e939bec2f
commit 9b237c7ebf
4 changed files with 17 additions and 11 deletions

View File

@ -32,7 +32,7 @@ scheduler.start()
def start_ms(i):
print("\033[32m" + f"Starting config {i}" + "\033[0m")
subprocess.Popen(["python3", "./V6.py", "-c", i])
TriggerDict = {}
def update_jobs():
@ -67,8 +67,6 @@ def update_jobs():
scheduler.remove_job(i)
except Exception as e :
print(f"\033[33merror with deleting config {i} : {e}\033[0m")
"""
@ -157,7 +155,9 @@ def dev():
@app.route("/")
def main():
return(render_template("override.html"))
with open("./user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
return(render_template("override.html", data=configs))
@app.route("/discord/")
@ -358,7 +358,7 @@ def config_post():
"discord": action["discord"],
"time":"",
"enabled":"False",
"config": comptes
"accounts": comptes
}
with open("./user_data/configs.json", "w") as outFile:
json.dump(configs, outFile)
@ -372,5 +372,6 @@ def maxi(dict):
m = int(i)
return(m+1)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=3456, debug=True)