aboutsummaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorMichael McVady <michaelm@telnyx.com>2025-03-13 18:59:22 -0500
committerMichael McVady <michaelm@telnyx.com>2025-03-13 18:59:22 -0500
commit5b4380a191c52611d6178e7b19c5b3ab468be5af (patch)
treeb47207fdfa5de3dce73d3a8eb63d355d599cbc6a /app.py
parent3e48aec60d875018b442bcc7bb323af0fa9ad759 (diff)
Count goats
Diffstat (limited to 'app.py')
-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()