diff options
author | dyh <dengyuanhong@chinamobile.com> | 2020-02-18 15:18:13 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2020-02-18 16:20:47 +0800 |
commit | 9812671ef6df484b944355bf5101732d5cf9ea03 (patch) | |
tree | e0edb28f6ebeed891116a99eb5b3cdfb28074242 /catalog/packages/biz/nsdm_subscription.py | |
parent | 14eb438e920a9905e7254bf3aeb6bc4cc423e6b3 (diff) |
modify filters to filter
Change-Id: If18419663f2c5154f1a461429916025cf6c684e0
Issue-ID: MODELING-311
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'catalog/packages/biz/nsdm_subscription.py')
-rw-r--r-- | catalog/packages/biz/nsdm_subscription.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog/packages/biz/nsdm_subscription.py b/catalog/packages/biz/nsdm_subscription.py index e2af6e4..652e9a7 100644 --- a/catalog/packages/biz/nsdm_subscription.py +++ b/catalog/packages/biz/nsdm_subscription.py @@ -76,7 +76,7 @@ class NsdmSubscription: for query, value in list(self.params.items()): if query in const.NSDM_NOTIFICATION_FILTERS and value: query_data[query + '__icontains'] = json.dumps(list(set(value))) - # Query the database with filters if the request + # Query the database with filter if the request # has fields in request params, else fetch all records if query_data: subscriptions = NsdmSubscriptionModel.objects.filter(**query_data) |