|
@@ -187,7 +187,7 @@ async def commit_task(content,repo_id):
|
|
|
print(f"提交出错: {commit_result}")
|
|
|
else:
|
|
|
print("提交成功")
|
|
|
- await Commit_Summary_Tasks.filter(repo_id=repo_id).update(result=commit_result,end_time=int(time.time()))
|
|
|
+ await Commit_Summary_Tasks.filter(repo_id=repo_id).update(result=commit_result[0],end_time=int(time.time()))
|
|
|
|
|
|
async def file_task(file_path,repo_id):
|
|
|
with open(file_path, 'r', encoding="utf8") as f:
|
|
@@ -197,7 +197,7 @@ async def file_task(file_path,repo_id):
|
|
|
print(f"提交出错: {file_result}")
|
|
|
else:
|
|
|
print("提交成功")
|
|
|
- await File_Summary_Tasks.filter(repo_id=repo_id).update(result=file_result, end_time=int(time.time()))
|
|
|
+ await File_Summary_Tasks.filter(repo_id=repo_id).update(result=file_result[0], end_time=int(time.time()))
|
|
|
|
|
|
|
|
|
|