From d0985a8c1f3eb3b695ab905094e9823c74edab72 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 13 Dec 2023 14:51:10 +1100 Subject: [PATCH] feat: Add analytics --- main.py | 2 +- templates/404.html | 15 +++++++++++++++ templates/dash.html | 15 +++++++++++++++ templates/index.html | 15 +++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index be26724..1d05708 100644 --- a/main.py +++ b/main.py @@ -129,7 +129,7 @@ def add_link(): # Verify link is not taken if db.get_link(link) != False: return error('Link already taken') - if link in ['dash','login','logout','404','assets']: + if link in ['dash','login','logout','404','assets','admin']: return error('Link already taken') # Add link diff --git a/templates/404.html b/templates/404.html index 9898cdc..b83be13 100644 --- a/templates/404.html +++ b/templates/404.html @@ -17,6 +17,21 @@ + + + diff --git a/templates/dash.html b/templates/dash.html index 575f547..cfeac3a 100644 --- a/templates/dash.html +++ b/templates/dash.html @@ -17,6 +17,21 @@ + + + diff --git a/templates/index.html b/templates/index.html index ea2d1e0..6b13e93 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,6 +25,21 @@ + + +