feat: 改为同步

This commit is contained in:
RockChinQ
2023-12-21 16:48:50 +08:00
parent b8776fba65
commit 7c6526d1ea
7 changed files with 34 additions and 39 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ def compare_version_str(v0: str, v1: str) -> int:
return 0
async def update_all(cli: bool = False) -> bool:
def update_all(cli: bool = False) -> bool:
"""检查更新并下载源码"""
start_time = time.time()
@@ -207,7 +207,7 @@ async def update_all(cli: bool = False) -> bool:
with open("current_tag", "w") as f:
f.write(current_tag)
await context.get_center_v2_api().main.post_update_record(
context.get_center_v2_api().main.post_update_record(
spent_seconds=int(time.time()-start_time),
infer_reason="update",
old_version=old_tag,