Skip to content

Commit bb001f6

Browse files
committed
Fix #358: Fix notification link for multiple flags
1 parent 4b956d2 commit bb001f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bench_runner/scripts/notify.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
def generate_dirname(
1414
date: str, version: str, cpython_hash: str, flags: list[str]
1515
) -> str:
16+
if len(flags):
17+
flag_string = [",".join(sorted(flags))]
18+
else:
19+
flag_string = []
1620
return "-".join(
17-
["bm", date[:10].replace("-", ""), version, cpython_hash[:7], *flags]
21+
["bm", date[:10].replace("-", ""), version, cpython_hash[:7], *flag_string]
1822
)
1923

2024

0 commit comments

Comments
 (0)