Skip to content

Commit 8db155d

Browse files
committed
Can't nest an f-string inside another f-string.
1 parent 639bc07 commit 8db155d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.ci/scripts/docgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def generate_markdown_table(policies: List[PolicyMetadata]) -> str:
4343
description = p.description.replace("\n", " ").strip()
4444
ghcr_path = f"ghcr.io/{os.path.normpath(os.path.dirname(p.path))}"
4545
readme_url = replace_filename_in_url(f"https://github.com/ContainerCraft/updatecli-policies/tree/main/{p.path}", "README.md")
46-
rows.append(f"| `{ghcr_path}:{p.version}` | {description or '-'} | {f"[link]({readme_url})" } |")
46+
rows.append(f"| `{ghcr_path}:{p.version}` | {description or '-'} | [link]({readme_url}) |")
4747
return header + separator + "\n".join(rows)
4848

4949
def replace_filename_in_url(url: str, new_filename: str) -> str:

0 commit comments

Comments
 (0)