更新 search.py

This commit is contained in:
jxxghp 2023-08-06 19:59:45 +08:00 committed by GitHub
parent a188bff802
commit 5da54251b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ class SearchChain(ChainBase):
results.extend(result) results.extend(result)
logger.info(f"站点搜索进度:{finish_count} / {total_num}") logger.info(f"站点搜索进度:{finish_count} / {total_num}")
self.progress.update(value=finish_count / total_num * 100, self.progress.update(value=finish_count / total_num * 100,
text=f"正在搜索,已完成 {finish_count} / {total_num} 个站点 ...", text=f"正在搜索{keyword or ''},已完成 {finish_count} / {total_num} 个站点 ...",
key=ProgressKey.Search) key=ProgressKey.Search)
# 计算耗时 # 计算耗时
end_time = datetime.now() end_time = datetime.now()