浏览代码

[task] Fix small bug

Colin Powell 8 月之前
父节点
当前提交
86bcdef13d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vrobbler/apps/tasks/webhooks.py

+ 1 - 1
vrobbler/apps/tasks/webhooks.py

@@ -72,7 +72,7 @@ def todoist_webhook(request):
             else False,
         }
 
-    if not todoist_note or todoist_event:
+    if (is_added and not todoist_note) or (is_updated and not todoist_task):
         logger.info(
             "[todoist_webhook] ignoring wrong todoist type, event or labels",
             extra={