Always send numeric queue position in upload notification email
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled

This commit is contained in:
admin
2026-06-14 17:00:06 +00:00
parent f7c9c70bfc
commit 50c7ec90a0
3 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ def send_initial_email(to: str, queue_pos: int):
try:
html = load_template(
"upload_notification_template.html",
queue_position=str(queue_pos) if queue_pos > 0 else "the queue",
queue_position=str(max(queue_pos, 1)),
)
except EmailError as e:
logger.warning("Failed to render upload notification template: %s", e)