Skip to content

Commit

Permalink
Add the number of configured API keys
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Sep 21, 2024
1 parent ca1029e commit ae7ca96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threatr/core/api/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def get_module_list():
ml = ModulesLoader()
available_modules = []
for module in ml.list_modules():
credentials = VendorCredentials.objects.filter(vendor=module.unique_identifier())
credentials = VendorCredentials.objects.filter(vendor=module.unique_identifier()).count()
available_modules.append({
'id': module.unique_identifier(),
'vendor': module.vendor(),
'configured': bool(credentials),
'configured': credentials,
'description': module.description(),
'supported_types': module.supported_types()
})
Expand Down

0 comments on commit ae7ca96

Please sign in to comment.