Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nexpose/nexpose_assetfilter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from json_utils import JSON
from nexpose_criteria import Criteria, Criterion
from nexpose_asset import AssetBase
import json

class FilteredAsset(AssetBase, JSON):
@staticmethod
Expand Down Expand Up @@ -60,5 +61,5 @@ def as_json(self):
js['dir'] = 'ASC'
js['sort'] = 'assetIP' # why can't we sort on ID?
js['table-id'] = 'assetfilter'
js['searchCriteria'] = self.criteria.as_json()
js['searchCriteria'] = json.dumps(self.criteria.as_json(), separators=(',', ':'))
return js