diff options
Diffstat (limited to 'data.cgi')
-rwxr-xr-x | data.cgi | 8 |
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)) |