fix: correct glob pattern for finding latest benchmark directory

This commit is contained in:
Paul Gauthier 2024-11-28 14:00:10 -08:00 committed by Paul Gauthier (aider)
parent e4a1d6fe89
commit a89ce06377

View file

@ -49,7 +49,7 @@ def find_latest_benchmark_dir():
latest_dir = max( latest_dir = max(
benchmark_dirs, benchmark_dirs,
key=lambda d: next((f.stat().st_mtime for f in d.rglob("*.md") if f.is_file()), 0), key=lambda d: next((f.stat().st_mtime for f in d.glob("*/.*.md") if f.is_file()), 0),
) )
print(f"Using the most recently updated benchmark directory: {latest_dir.name}") print(f"Using the most recently updated benchmark directory: {latest_dir.name}")
return latest_dir return latest_dir