Skip to content

Commit

Permalink
Merge pull request #1048 from psyray/fix-todos-count-718
Browse files Browse the repository at this point in the history
Count only not done todos in subdomains list
  • Loading branch information
AnonymousWP committed Nov 21, 2023
2 parents 5c15405 + 9791fee commit ca6a14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca6a14a

Please sign in to comment.