Skip to content

Commit

Permalink
Update has_package_data filter logic #444
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Aug 23, 2022
1 parent 9803806 commit aef3e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanpipe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ def has_no_licenses(self):
return self.filter(licenses=[])

def has_package_data(self):
return self.filter(package_data__isnull=False)
return self.filter(~Q(package_data=[]))

def licenses_categories(self, categories):
return self.json_list_contains(
Expand Down

0 comments on commit aef3e07

Please sign in to comment.