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

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

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()