1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-02 04:21:43 +00:00

FIX: When peforming an import on a given series, would error attempting to log an integer value improperly

This commit is contained in:
evilhero 2016-04-18 13:40:11 -04:00
parent eea7a2b692
commit 964ebb8265

View file

@ -3272,13 +3272,12 @@ class WebInterface(object):
#figure out # of issues and the year range allowable #figure out # of issues and the year range allowable
logger.info('yearTOP: ' + str(yearTOP)) logger.info('yearTOP: ' + str(yearTOP))
logger.info('minISSUE: ' + minISSUE)
logger.info('yearRANGE: ' + str(yearRANGE)) logger.info('yearRANGE: ' + str(yearRANGE))
if starttheyear is None: if starttheyear is None:
if all([yearTOP != None, yearTOP != 'None']): if all([yearTOP != None, yearTOP != 'None']):
if int(str(yearTOP)) > 0: if int(str(yearTOP)) > 0:
minni = helpers.issuedigits(minISSUE) minni = helpers.issuedigits(minISSUE)
logger.info(minni) #logger.info(minni)
if minni < 1 or minni > 999999999: if minni < 1 or minni > 999999999:
maxyear = int(str(yearTOP)) maxyear = int(str(yearTOP))
else: else:
@ -3320,7 +3319,6 @@ class WebInterface(object):
#we now need to cycle through the results until we get a hit on both dynamicname AND year (~count of issues possibly). #we now need to cycle through the results until we get a hit on both dynamicname AND year (~count of issues possibly).
logger.fdebug('[' + str(len(sresults)) + '] search results') logger.fdebug('[' + str(len(sresults)) + '] search results')
search_matches = [] search_matches = []
for results in sresults: for results in sresults:
rsn = filechecker.FileChecker() rsn = filechecker.FileChecker()
rsn_run = rsn.dynamic_replace(results['name']) rsn_run = rsn.dynamic_replace(results['name'])