give more feedback on action

This commit is contained in:
2021-05-19 10:23:47 +02:00
parent c1e64a8a17
commit d26cc5b4b9
3 changed files with 33 additions and 11 deletions

View File

@@ -20,4 +20,6 @@ def index_post():
if request.method == 'POST':
with open(app.config.get("MESSAGE_FILE"), 'w') as f:
f.write(str(input_message))
return redirect("/")
result = "Success: The autoreply message has been updated!"
return render_template("result.html", result=result)