summaryrefslogtreecommitdiff
path: root/data.cgi
diff options
context:
space:
mode:
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))