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
1 changed files with 1 additions and 1 deletions

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