IMP: Error-Check built-in on startup for series' that didn't complete properly and break the main page on startup

This commit is contained in:
evilhero 2013-04-09 22:59:48 -04:00
parent 59072add8a
commit fbe03ce08b
1 changed files with 4 additions and 0 deletions

View File

@ -933,6 +933,10 @@ def dbcheck():
c.execute("DELETE from COMICS WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
logger.info(u"Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)")
logger.info(u"Correcting Null entries that make the main page break on startup.")
c.execute("UPDATE Comics SET LatestDate='Unknown' WHERE LatestDate='None' or LatestDate is NULL")
conn.commit()
c.close()