mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-14 08:34:59 +00:00
copy
This commit is contained in:
parent
d831e2f3a4
commit
4251e976b3
5 changed files with 35 additions and 8 deletions
|
@ -50,3 +50,29 @@ Therefore, results are available for fewer models.
|
|||
</script>
|
||||
|
||||
|
||||
<p class="post-date">
|
||||
By Paul Gauthier,
|
||||
last updated
|
||||
<!--[[[cog
|
||||
import subprocess
|
||||
import datetime
|
||||
|
||||
files = [
|
||||
'aider/website/docs/leaderboards/refactor.md',
|
||||
'aider/website/_data/refactor_leaderboard.yml',
|
||||
]
|
||||
|
||||
def get_last_modified_date(file):
|
||||
result = subprocess.run(['git', 'log', '-1', '--format=%ct', file], capture_output=True, text=True)
|
||||
if result.returncode == 0:
|
||||
timestamp = int(result.stdout.strip())
|
||||
return datetime.datetime.fromtimestamp(timestamp)
|
||||
return datetime.datetime.min
|
||||
|
||||
mod_dates = [get_last_modified_date(file) for file in files]
|
||||
latest_mod_date = max(mod_dates)
|
||||
cog.out(f"{latest_mod_date.strftime('%B %d, %Y.')}")
|
||||
]]]-->
|
||||
December 21, 2024.
|
||||
<!--[[[end]]]-->
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue