aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/app.py b/app.py
index 6187c0a..41724b3 100644
--- a/app.py
+++ b/app.py
@@ -21,6 +21,7 @@ TEMPLATE_STR = """<!DOCTYPE html>
</head>
<body style="background-color: {{ color }}">
<h1>{{ message }}</h1>
+<script data-goatcounter="https://test.bunkergate.org/count" async src="https://test.bunkergate.org/count.js"></script>
</body>
</html>
"""
@@ -69,11 +70,13 @@ def random_light() -> Template:
@get("/")
async def get_index() -> Template:
+ """Return index"""
return random_light()
@post("/")
async def post_index() -> Template:
+ """Update index"""
return random_light()