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:
parent
59072add8a
commit
fbe03ce08b
1 changed files with 4 additions and 0 deletions
|
@ -933,6 +933,10 @@ def dbcheck():
|
||||||
c.execute("DELETE from COMICS WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
|
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"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()
|
conn.commit()
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue