diff options
author | ubq323 <ubq323@ubq323.website> | 2021-12-11 20:28:36 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2021-12-11 20:28:36 +0000 |
commit | e79fe819f672d3454532181182732080e056592a (patch) | |
tree | d242d5e454026e40ebeeaa0c655e7764075ebd8e /data.cgi |
add existing content
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)) |