small update

This commit is contained in:
Trilarion
2019-05-29 10:40:35 +02:00
parent 4788b5011e
commit 3dcba4ca33
7 changed files with 50 additions and 29 deletions

View File

@ -155,6 +155,7 @@
"https://github.com/delight-im/OpenSoccer.git",
"https://github.com/dmecke/OpenSoccerStar.git",
"https://github.com/doxygen/doxygen.git",
"https://github.com/dsallen7/ransack-python.git",
"https://github.com/dungeons-of-moria/umoria.git",
"https://github.com/ec429/harris.git",
"https://github.com/egoboo/egoboo.git",

View File

@ -591,19 +591,15 @@ def export_json():
"""
# make database out of it
db = {}
db['headings'] = ['Game', 'Description', 'Download', 'Category', 'State', 'Keywords', 'Source']
db = {'headings': ['Game', 'Description', 'Download', 'Category', 'State', 'Keywords', 'Source']}
entries = []
for info in infos.values():
entry = []
# game
entry.append('{} (<a href="{}">home</a>, <a href="{}">entry</a>)'.format(info['title'], info['home'][0], r'https://github.com/Trilarion/opensourcegames/blob/master/games/' + info['path']))
# description
entry.append(textwrap.shorten(info['description'], width=60, placeholder='..'))
# game & description
entry = ['{} (<a href="{}">home</a>, <a href="{}">entry</a>)'.format(info['title'], info['home'][0],
r'https://github.com/Trilarion/opensourcegames/blob/master/games/' + info['path']),
textwrap.shorten(info['description'], width=60, placeholder='..')]
# download
field = 'download'