瀏覽代碼

[tasks] Fix source checking for emacs/orgmode tasks when updating

Colin Powell 2 月之前
父節點
當前提交
490d60cbbb
共有 2 個文件被更改,包括 19 次插入1 次删除
  1. 18 0
      todos.org
  2. 1 1
      vrobbler/apps/scrobbles/scrobblers.py

+ 18 - 0
todos.org

@@ -1,6 +1,24 @@
 #+title: TODOs
 
 * Version 17
+** STRT [#A] Emacs is not syncing notes :personal:scrobbling:emacs:bug:
+:PROPERTIES:
+:ID:       c79cd491-b30f-0945-d84b-b8cac7562791
+:END:
+<2025-06-12 Thu 9:30>
+
+Not sure if the problem is in my Emacs hook sending or Vrobbler itself.
+
+- Note taken on [2025-06-12 Thu 09:47]
+
+  Adding a quick note to check on it
+
+- Note taken on [2025-06-12 Thu 09:50]
+
+  Ah ha. All the messing about with the source field meant that I was looking
+  for `emacs` as a source but the hook was initially setting sources to
+  `orgmode` I think I prefer `orgmode` as the source, so updating it thusly.
+
 ** TODO [#A] Show the description of a task in the string rep for a scrobble of a Task :personal:project:scrobbling:vrobbler:feature:
 ** TODO [#B] Add AllTrails as a source for Trail data :vrobbler:trails:feature:personal:project:
 Pretty clear, I would love to make trails more useful. Historically I wasn't

+ 1 - 1
vrobbler/apps/scrobbles/scrobblers.py

@@ -508,7 +508,7 @@ def emacs_scrobble_update_task(
         in_progress=True,
         user_id=user_id,
         log__source_id=emacs_id,
-        log__source="emacs",
+        log__source="orgmode",
     ).first()
 
     if not scrobble: