Loading db/tables.sql +2 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ PRIMARY KEY(book_id), KEY(filename), KEY(title,format,filesize), INDEX(path), INDEX(cat_id), INDEX(avail,doublicat), INDEX(registerdate)); commit; Loading @@ -36,7 +37,7 @@ cat_name VARCHAR(64), path VARCHAR(1024), cat_type INT not null DEFAULT 0, PRIMARY KEY(cat_id), KEY(cat_name)); KEY(cat_name,path)); commit; drop table if exists authors; Loading db/updates/update015-018.sql +2 −0 Original line number Diff line number Diff line update dbver set ver="0.18"; create index idx_path on books(path); create index idx_cat0 on catalogs(cat_name,path); create index idx_books_catid on books(cat_id); commit; py/sopds-scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ def processfile(db,fb2,name,full_path,file,archive=0,file_size=0,cat_id=0): if e.lower() in extensions_set: rel_path=os.path.relpath(full_path,cfg.ROOT_LIB) logging.debug("Attempt to add book "+rel_path+" - "+name) logging.debug("Attempt to add book "+rel_path+"/"+name) fb2.reset() if db.findbook(name,rel_path,1)==0: Loading Loading
db/tables.sql +2 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ PRIMARY KEY(book_id), KEY(filename), KEY(title,format,filesize), INDEX(path), INDEX(cat_id), INDEX(avail,doublicat), INDEX(registerdate)); commit; Loading @@ -36,7 +37,7 @@ cat_name VARCHAR(64), path VARCHAR(1024), cat_type INT not null DEFAULT 0, PRIMARY KEY(cat_id), KEY(cat_name)); KEY(cat_name,path)); commit; drop table if exists authors; Loading
db/updates/update015-018.sql +2 −0 Original line number Diff line number Diff line update dbver set ver="0.18"; create index idx_path on books(path); create index idx_cat0 on catalogs(cat_name,path); create index idx_books_catid on books(cat_id); commit;
py/sopds-scan.py +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ def processfile(db,fb2,name,full_path,file,archive=0,file_size=0,cat_id=0): if e.lower() in extensions_set: rel_path=os.path.relpath(full_path,cfg.ROOT_LIB) logging.debug("Attempt to add book "+rel_path+" - "+name) logging.debug("Attempt to add book "+rel_path+"/"+name) fb2.reset() if db.findbook(name,rel_path,1)==0: Loading