2 Commits

Author SHA1 Message Date
piair
3c9d20891c Merge branch 'master' of https://gitea.augustin64.fr/piair/MsRewards-Reborn 2024-02-27 11:34:22 +01:00
piair
a0a4535c35 updated webUI according to param changes 2024-02-27 11:26:55 +01:00

View File

@@ -386,7 +386,7 @@ def stats():
def override_post():
json = request.form.to_dict(flat=False)
log = open(f"/app/MsRewards-Reborn/Flask/static/logs/custom.txt", 'w') # so that data written to it will be appended
subprocess.Popen([f"python3 -u /app/MsRewards-Reborn/V6.py -c {json['config'][0]} --very-custom \"{json}\""], stdout=log, stderr=log, shell=True)
subprocess.Popen([f"python3 -u /app/MsRewards-Reborn/V6.py -c {json['config'][0]} --json \"{json}\""], stdout=log, stderr=log, shell=True)
log.close()
return(render_template("vnc_post.html"))