From 20dbf6c0df577582fb42d3c67c802a8337e9d60d Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 17:52:17 +1000 Subject: [PATCH] main: Fixed a few bits of the admin panel --- master/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/master/main.py b/master/main.py index 057c1d8..4b5d6dd 100644 --- a/master/main.py +++ b/master/main.py @@ -533,7 +533,7 @@ def admin(): html += "

Domain: " + site.split(':')[0] + " | Worker: " + site.split(':')[1].strip('\n') + "

" - html += "


" + html += "

" # Form to add worker html += "

Add worker

" html += "
" @@ -543,7 +543,7 @@ def admin(): html += "" html += "
" - html += "

New Licence

" + html += "

Add Licence


" # Form to add site html += "

Add site

" html += "
" @@ -558,7 +558,7 @@ def admin(): return html -@app.route('/add-site') +@app.route('/add-site', methods=['POST']) def addsite(): # Check cookie login_key = request.cookies.get('login_key')