From 9791feee7b6b5e8de5cda3650769fe060aea96a6 Mon Sep 17 00:00:00 2001 From: Raynald Date: Sat, 18 Nov 2023 14:40:19 +0100 Subject: [PATCH] Count only not done todos in subdomains list --- web/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/serializers.py b/web/api/serializers.py index b768345dd..7a4c621f8 100644 --- a/web/api/serializers.py +++ b/web/api/serializers.py @@ -870,7 +870,7 @@ def get_subscan_count(self, subdomain): return subdomain.get_subscan_count def get_todos_count(self, subdomain): - return len(subdomain.get_todos) + return len(subdomain.get_todos.filter(is_done=False)) def get_vuln_count(self, obj): try: