mirror of
https://github.com/evilhero/mylar
synced 2025-03-09 21:33:42 +00:00
Tidy up listLibary
This commit is contained in:
parent
5bfe348e72
commit
65b3d67b12
1 changed files with 1 additions and 3 deletions
|
@ -1440,16 +1440,14 @@ def listLibrary():
|
||||||
import db
|
import db
|
||||||
library = {}
|
library = {}
|
||||||
myDB = db.DBConnection()
|
myDB = db.DBConnection()
|
||||||
# # Get individual comics
|
# Get individual comics
|
||||||
list = myDB.select("SELECT ComicId FROM Comics")
|
list = myDB.select("SELECT ComicId FROM Comics")
|
||||||
for row in list:
|
for row in list:
|
||||||
library[row['ComicID']] = row['ComicID']
|
library[row['ComicID']] = row['ComicID']
|
||||||
# library.append(row['ComicId'])
|
|
||||||
# Add the annuals
|
# Add the annuals
|
||||||
list = myDB.select("SELECT ReleaseComicId,ComicID FROM Annuals")
|
list = myDB.select("SELECT ReleaseComicId,ComicID FROM Annuals")
|
||||||
for row in list:
|
for row in list:
|
||||||
library[row['ReleaseComicId']] = row['ComicID']
|
library[row['ReleaseComicId']] = row['ComicID']
|
||||||
# library.append(row['ReleaseComicId'])
|
|
||||||
return library
|
return library
|
||||||
|
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
Loading…
Add table
Reference in a new issue