diff --git a/Flask/app.py b/Flask/app.py index 35b8892..a2b3a02 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -404,6 +404,16 @@ def config_post(): def logs(): return(render_template("logs.html")) + + + +@app.route('/pdf/', methods=['GET', 'POST']) +def download(filename): + return send_from_directory(directory='/user_data', filename=filename) + + + + def maxi(dict): m = 0 for i in dict : diff --git a/Flask/templates/settings.html b/Flask/templates/settings.html index 543fca8..09279fa 100644 --- a/Flask/templates/settings.html +++ b/Flask/templates/settings.html @@ -64,6 +64,7 @@ logs viewer + {% endif %} {%endblock %} diff --git a/V6.py b/V6.py index 33a5ade..f93ceae 100755 --- a/V6.py +++ b/V6.py @@ -832,6 +832,7 @@ else : display = SmartDisplay(size=(1920, 1080)) display.start() +webhookFailure.send(f"Starting on this config", username="UPDATE", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png") if g.custom_start: CustomStart()