mirror of
https://github.com/evilhero/mylar
synced 2024-12-26 09:36:53 +00:00
FIX: (#910) Upcoming tab would be unaccessible if there were annuals present that just had an IssueID, with no associative ComicName within the annuals table.
This commit is contained in:
parent
212cfa7758
commit
7e6a0e648a
1 changed files with 4 additions and 3 deletions
|
@ -1695,9 +1695,10 @@ def dbcheck():
|
|||
# c.execute('ALTER TABLE importresults ADD COLUMN MetaData TEXT')
|
||||
|
||||
#let's delete errant comics that are stranded (ie. Comicname = Comic ID: )
|
||||
c.execute("DELETE from COMICS WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
|
||||
c.execute("DELETE from ISSUES WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
|
||||
c.execute("DELETE from UPCOMING WHERE ComicName='None' OR ComicName is NULL or IssueNumber is NULL")
|
||||
c.execute("DELETE from comics WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
|
||||
c.execute("DELETE from issues WHERE ComicName='None' OR ComicName LIKE 'Comic ID%' OR ComicName is NULL")
|
||||
c.execute("DELETE from annuals WHERE ComicName='None' OR ComicName is NULL or Issue_Number is NULL")
|
||||
c.execute("DELETE from upcoming WHERE ComicName='None' OR ComicName is NULL or IssueNumber is NULL")
|
||||
logger.info('Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)')
|
||||
|
||||
logger.info('Correcting Null entries that make the main page break on startup.')
|
||||
|
|
Loading…
Reference in a new issue