Manage empty URLs in the CSV.

pull/1/head
Tullio Facchinetti 3 years ago
parent 393683b4ed
commit 99e5f18ddf

@ -178,7 +178,7 @@ If you have any suggestion or want your project listed here, drop me an email at
* [Nethack](http://nethack.org/) - Single player rogue-like dungeon exploration game; I'm currently addicted to [Pixel Dungeon](http://pixeldungeon.watabou.ru/) and its derivatives (Android apps), thus I find nethack a little bit too graphically poor.
* [Oldrunner](http://culot.org/public/Code/oldrunner.html) - Character-based remake of Lode Runner; includes all the original 150 levels.
* [Slash'EM](http://slashem.sourceforge.net/) - Rogue-like game derived from `nethack` offering extra features, monsters, and items; includes a GUI version.
* [StarWars vision]() - See Star Wars in ASCII with ``telnet towel.blinkenlights.nl``.
* StarWars vision - See Star Wars in ASCII with ``telnet towel.blinkenlights.nl``.
* [Terminal Phase](https://dustycloud.org/blog/terminal-phase-1.0/) - A space shooter game you can play in your terminal.
* [terminal_board_games](https://github.com/salt-die/terminally_bored_terminal_board_games) - Board games for the terminal.
* [Typespeed](http://typespeed.sourceforge.net/) - Type words that are flying by from left to right as fast as you can; features different word sets, e.g., UNIX commands, English words, Non-English words.

@ -35,7 +35,10 @@ def load_csv(file_name):
def fmt_app(app):
descr = ''.join(c if c != '\n' else ' ' for c in app['description'])
st = '* [{}]({}) - {}'.format(app['name'], app['url'], descr)
if app['url'] != '':
st = '* [{}]({}) - {}'.format(app['name'], app['url'], descr)
else:
st = '* {} - {}'.format(app['name'], descr)
return(st)

Loading…
Cancel
Save