|
|
@ -98,9 +98,8 @@ def main(): |
|
|
|
# only files in the current directly will be checked |
|
|
|
# only files in the current directly will be checked |
|
|
|
continue |
|
|
|
continue |
|
|
|
|
|
|
|
|
|
|
|
content = check_presentations(files) |
|
|
|
content = sorted(check_presentations(files), |
|
|
|
# holy shit, talk about abusing Python internals |
|
|
|
key=lambda r: r['title']) |
|
|
|
content.sort(cmp=lambda x, y: -1 if x['title'] < y['title'] else 1) |
|
|
|
|
|
|
|
with open('index.json', 'w') as output: |
|
|
|
with open('index.json', 'w') as output: |
|
|
|
output.write(json.dumps(content)) |
|
|
|
output.write(json.dumps(content)) |
|
|
|
|
|
|
|
|
|
|
|