FIX:(#1639) invalid key reference during force search

This commit is contained in:
evilhero 2017-05-19 07:36:23 -04:00
parent dee1932beb
commit bd03003bd3
1 changed files with 1 additions and 1 deletions

View File

@ -1725,7 +1725,7 @@ def searchforissue(issueid=None, new=False, rsscheck=None):
#to-do: re-order the results list so it's most recent to least recent.
for result in sorted(results, key=itemgetter('ReleaseDate'), reverse=True):
for result in sorted(results, key=itemgetter('StoreDate'), reverse=True):
comic = myDB.selectone("SELECT * from comics WHERE ComicID=? AND ComicName != 'None'", [result['ComicID']]).fetchone()
if comic is None:
logger.fdebug(str(result['ComicID']) + ' has no associated comic information. Skipping searching for this series.')