mirror of
https://github.com/evilhero/mylar
synced 2024-12-23 00:02:38 +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:
|
if mylar.CONFIG.ANNUALS_ON:
|
||||||
annuals = self._dic_from_query('SELECT * FROM annuals WHERE ComicID="' + self.id + '"')
|
annuals = self._dic_from_query('SELECT * FROM annuals WHERE ComicID="' + self.id + '"')
|
||||||
else:
|
else:
|
||||||
annuals = None
|
annuals = []
|
||||||
|
|
||||||
self.data = {'comic': comic, 'issues': issues, 'annuals': annuals}
|
self.data = {'comic': comic, 'issues': issues, 'annuals': annuals}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue