Clean up release post
Committed 528fe2
--- a/webint_code/__init__.py
+++ b/webint_code/__init__.py
],
cwd=releases_dir,
)
+ release_version = release_remaining.removesuffix(".tar.gz")
web.application("webint_posts").model.create(
"entry",
- url=f"/code/projects/{project['name']}/releases/{release_file.name}",
+ url=f"/code/projects/{project['name']}/releases/{release_version}",
content=(
f"Released <a href=/code/{project['name']}><code>"
f"{project['name']}</code></a> version "
- f"<code>{release_remaining}</code>"
+ f"<code>{release_version}</code>"
),
)
app.model.create_package(form)