From 6741f8cac2bf92d7375a543dcb6ef9107294973f Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 18 Sep 2023 14:42:43 +1000 Subject: [PATCH] main: Add route to get site count --- master/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/master/main.py b/master/main.py index 6434604..96575b9 100644 --- a/master/main.py +++ b/master/main.py @@ -562,7 +562,10 @@ def success(): return render_template('success.html') - +@app.route('/site-count') +def site_count_route(): + return str(get_sites_count()) + # Admin page