[profiles] Clean up default task lookup
This commit is contained in:
@ -141,12 +141,10 @@ class UserProfile(TimeStampedModel):
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def task_context_tags(self) -> list[str]:
|
def task_context_tags(self) -> list[str]:
|
||||||
tag_list = [
|
tag_list = settings.DEFAULT_TASK_CONTEXT_TAGS
|
||||||
t.strip().capitalize()
|
tags = ""
|
||||||
for t in self.task_context_tags_str.split(",")
|
if self.task_context_tags_str:
|
||||||
]
|
tags = self.task_context_tags_str
|
||||||
|
tag_list = [t.strip().capitalize() for t in tags.split(",")]
|
||||||
if not tag_list:
|
|
||||||
tag_list = settings.DEFAULT_TASK_CONTEXT_TAG_LIST
|
|
||||||
|
|
||||||
return tag_list
|
return tag_list
|
||||||
|
|||||||
Reference in New Issue
Block a user