[profiles] Add user profile context override

This commit is contained in:
2025-04-02 22:13:43 -04:00
parent 23d3e19db9
commit 0cc87a2dbe
4 changed files with 636 additions and 2 deletions

View File

@ -392,6 +392,9 @@ def todoist_scrobble_task(
prefix = ""
suffix = ""
# TODO look up the user profile and instead of checking PREFIX/SUFFIX, check against
# user.profile.task_context_tags which will result in context-based tag titles
# We'd also have to migrate existing tasks to the new context based ones (maybe)
for label in todoist_task["todoist_label_list"]:
if label in TODOIST_TITLE_PREFIX_LABELS:
prefix = label