Fix missing name in release creation in two places

This commit is contained in:
rubenwardy 2024-06-23 09:42:31 +01:00
parent 1fc7aeb1dd
commit 9a64ff7563
2 changed files with 3 additions and 1 deletions

@ -118,6 +118,7 @@ def apply_all_updates(username):
rel = PackageRelease() rel = PackageRelease()
rel.package = package rel.package = package
rel.name = title
rel.title = title rel.title = title
rel.url = "" rel.url = ""
rel.task_id = uuid() rel.task_id = uuid()

@ -429,7 +429,8 @@ def check_update_config_impl(package):
if config.make_release: if config.make_release:
rel = PackageRelease() rel = PackageRelease()
rel.package = package 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.url = ""
rel.task_id = uuid() rel.task_id = uuid()
db.session.add(rel) db.session.add(rel)