mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 15:52:47 +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:
parent
47b475702e
commit
93eb1a8615
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue