faire git pull = être un gros fou, j'ai rien tester

This commit is contained in:
piair
2023-09-30 17:23:37 +02:00
parent 92ee7da9a4
commit e21ee8b5a4
5 changed files with 68 additions and 9 deletions

View File

@ -372,7 +372,9 @@ def stats():
@app.route("/override/", methods=["POST"])
def override_post():
json = request.form.to_dict(flat=False)
print(request.form["unban"])
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']} --very-custom {json}"], stdout=log, stderr=log, shell=True)
log.close()
return(render_template("vnc_post.html"))
@app.route("/override/", methods=["GET"])

View File

@ -37,9 +37,9 @@ function change_override(value, data) {
<td id="compte_{{i}}"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="unban"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="tout"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="daily"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="pc"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="mobile"></td>
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="log_points"></td>
</tr>
{% endfor %}