mirror of https://github.com/evilhero/mylar
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:
parent
59072add8a
commit
fbe03ce08b
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue