소스 검색

[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={