summaryrefslogtreecommitdiff
path: root/data.cgi
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2021-12-11 20:28:36 +0000
committerubq323 <ubq323@ubq323.website>2021-12-11 20:28:36 +0000
commite79fe819f672d3454532181182732080e056592a (patch)
treed242d5e454026e40ebeeaa0c655e7764075ebd8e /data.cgi
add existing content
Diffstat (limited to 'data.cgi')
-rwxr-xr-xdata.cgi8
1 files changed, 8 insertions, 0 deletions
diff --git a/data.cgi b/data.cgi
new file mode 100755
index 0000000..5054b25
--- /dev/null
+++ b/data.cgi
@@ -0,0 +1,8 @@
+#!/usr/bin/env python3
+import json
+from georgedata import the
+data = [{"name":k,"link":v[0],"colour":v[1],"is_council":v[2] if len(v)>2 else False} for k,v in the.items()]
+print("Content-Type: application/json")
+print("Comedy: extreme")
+print()
+print(json.dumps(data))