From 224c165d723d96669764bb74ca9bcd4f91339b91 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 27 Jun 2025 11:54:14 -0400 Subject: [PATCH] [tasks] Fix bad matching in label titles --- vrobbler/apps/tasks/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/tasks/utils.py b/vrobbler/apps/tasks/utils.py index 09cb084..a3aff9d 100644 --- a/vrobbler/apps/tasks/utils.py +++ b/vrobbler/apps/tasks/utils.py @@ -9,8 +9,10 @@ def get_title_from_labels(labels: list[str], user_context_labels: list[str] = [] task_context_labels: list = user_context_labels or settings.DEFAULT_TASK_CONTEXT_TAG_LIST for label in labels: # TODO We may also want to take a user list of labels instead + label = label.capitalize() if label in task_context_labels: - title = label.capitalize() + title = label + continue if title == "Unknown": logger.warning(