From 4ccd401a94daf3bfc7e286c1cb6dd49fa8d31ceb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 25 Feb 2024 14:32:44 +1100 Subject: [PATCH] fix: Publishing site in the wrong button --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 889862c..09143fa 100644 --- a/main.py +++ b/main.py @@ -217,7 +217,7 @@ def site_post(): with open(f'sites/{i["name"]}.json', 'w') as file: json.dump(data, file) - return redirect('/publishing') + return redirect('/site') response = make_response(redirect('/')) response.set_cookie('auth', '', expires=0) @@ -289,7 +289,7 @@ def publish(): nginx.write_nginx_conf(i['name']) threading.Thread(target=generate_ssl_and_write_nginx).start() - return redirect('/site') + return redirect('/publishing')