[tasks] Fix bad matching in label titles

This commit is contained in:
2025-06-27 11:54:14 -04:00
parent bf7d2514f2
commit 224c165d72

View File

@ -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(