mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-13 14:34:45 +02:00
maybe the last update
This commit is contained in:
11
Flask/app.py
11
Flask/app.py
@ -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)
|
Reference in New Issue
Block a user