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