fixed noncategorized filter

This commit is contained in:
Joshua Widmann 2015-02-08 15:47:45 +01:00
commit b94a7ff409
2 changed files with 10 additions and 5 deletions

View file

@ -41,7 +41,7 @@ def articles():
"date": article[1],
"place": article[2],
"description": article[3],
"categories": [article[4]],
"categories": [article[4]] if article[4] else [],
"lat": locations[article_id][0],
"lng": locations[article_id][1],
"place": locations[article_id][2]