From a89ce063775395c6beb2e5c9e60f9a279f78c4c4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 28 Nov 2024 14:00:10 -0800 Subject: [PATCH] fix: correct glob pattern for finding latest benchmark directory --- benchmark/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 78db4403a..102e6d046 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -49,7 +49,7 @@ def find_latest_benchmark_dir(): latest_dir = max( 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}") return latest_dir