1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 07:42:24 +00:00

Fix so getComic empty results are consistent

The results returned from the api command to getComic would return empty dictionaries for comics and issues, but would return 'null' for annuals.  Now all of them return empty dictionaries, when there aren't any results.
This commit is contained in:
Craig Hornsby 2018-05-02 10:24:54 -04:00 committed by evilhero
parent 47b475702e
commit 93eb1a8615

View file

@ -169,7 +169,7 @@ class Api(object):
if mylar.CONFIG.ANNUALS_ON:
annuals = self._dic_from_query('SELECT * FROM annuals WHERE ComicID="' + self.id + '"')
else:
annuals = None
annuals = []
self.data = {'comic': comic, 'issues': issues, 'annuals': annuals}
return