From 9a64ff756397598fc5d89ba833f104254efb50b5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 23 Jun 2024 09:42:31 +0100 Subject: [PATCH] Fix missing name in release creation in two places --- app/blueprints/todo/user.py | 1 + app/tasks/importtasks.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/blueprints/todo/user.py b/app/blueprints/todo/user.py index 78d02a61..aaf7c0ae 100644 --- a/app/blueprints/todo/user.py +++ b/app/blueprints/todo/user.py @@ -118,6 +118,7 @@ def apply_all_updates(username): rel = PackageRelease() rel.package = package + rel.name = title rel.title = title rel.url = "" rel.task_id = uuid() diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index b76188e4..0c9264cd 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -429,7 +429,8 @@ def check_update_config_impl(package): if config.make_release: rel = PackageRelease() rel.package = package - rel.title = tag if tag else datetime.datetime.utcnow().strftime("%Y-%m-%d") + rel.name = tag if tag else datetime.datetime.utcnow().strftime("%Y-%m-%d") + rel.title = rel.name rel.url = "" rel.task_id = uuid() db.session.add(rel)