fix
This commit is contained in:
parent
952f4d44fb
commit
60598a1c82
@ -140,7 +140,7 @@ class baseComic:
|
||||
#不存在ComicInfo.xml则生成
|
||||
ci.writeComicInfoXML()
|
||||
#图标
|
||||
if is_next and not is_update_old:
|
||||
if is_next or not is_update_old:
|
||||
downloadUtils.downQueueClear()
|
||||
ComicPath.TIME_SLEEP = 0.5
|
||||
else:
|
||||
|
||||
@ -312,7 +312,7 @@ class dbUtils:
|
||||
else: db.update({"progress":progress},comic.name== name)
|
||||
msg = "失败"
|
||||
if cls.query(name,progress,db_name): msg = "成功"
|
||||
logger.info(f"设置{msg}, name={name} value={progress} db={db_name}")
|
||||
logger.debug(f"设置{msg}, name={name} value={progress} db={db_name}")
|
||||
|
||||
@classmethod
|
||||
def query(cls,name,progress=None,db_name=None):
|
||||
@ -320,7 +320,7 @@ class dbUtils:
|
||||
db = cls.init_db(db_name)
|
||||
if db == None: return None
|
||||
data = db.search(Query().name == name)
|
||||
logger.info(f"result query= {data}")
|
||||
logger.debug(f"result query= {data}")
|
||||
if progress != None:
|
||||
try:
|
||||
if len(db.search((Query().name == name) & (Query().progress == progress))) != 0: result = True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user