Skip to content

Commit 2f8db32

Browse files
authored
Merge pull request #359 from faster-cpython/fix-notification-of-multiple
Fix #358: Fix notification link for multiple flags
2 parents 4b956d2 + bb001f6 commit 2f8db32

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)