diff --git a/scripts/gen_repo_update_time.py b/scripts/gen_repo_update_time.py index c8e39510..9b7dba8a 100644 --- a/scripts/gen_repo_update_time.py +++ b/scripts/gen_repo_update_time.py @@ -46,7 +46,7 @@ def save_latest_update(commit_info): datetime_object = commit_info['date'] yymmdd = f'{datetime_object.year}.{datetime_object.month}.{datetime_object.day}' message_line = commit_info["message"].split('\n') - result_content = f"

最近更新时间 {yymmdd} ‖ 更新者 {commit_info['author']} ‖ {message_line[0]}

\n\n" + result_content = f"""{{{{< update-info update_time='{yymmdd}' author='{commit_info['author']}' message='{message_line[0]}' >}}}}""" with open('result.txt', 'w') as file: file.write(result_content)