From 54ffb2c4832bb133e445c9e0b72db7aef2de397c Mon Sep 17 00:00:00 2001 From: rlx Date: Fri, 10 Aug 2018 12:09:35 +0100 Subject: [PATCH] properly exclude 'blue' --- static/js/correlationsDialog.cms.js | 4 +++- static/js/manageKeywordsDialog.cms.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/correlationsDialog.cms.js b/static/js/correlationsDialog.cms.js index 5c3bb2d..2022007 100644 --- a/static/js/correlationsDialog.cms.js +++ b/static/js/correlationsDialog.cms.js @@ -13,7 +13,9 @@ pandora.ui.correlationsDialog = function() { let count = 0 pandora.api.find({ keys: ['id'], - query: {conditions: [], operator: ''}, + query: {conditions: [ + {key: 'id', operator: '!=', value: 'BA'} // "Blue" + ], operator: ''}, range: [0, 1000000], sort: [{key: 'id', operator: '+'}] }, function(result) { diff --git a/static/js/manageKeywordsDialog.cms.js b/static/js/manageKeywordsDialog.cms.js index 5193d15..a098d15 100644 --- a/static/js/manageKeywordsDialog.cms.js +++ b/static/js/manageKeywordsDialog.cms.js @@ -43,7 +43,9 @@ pandora.ui.manageKeywordsDialog = function() { let count = 0 pandora.api.find({ keys: ['id'], - query: {conditions: [], operator: ''}, + query: {conditions: [ + {key: 'id', operator: '!=', value: 'BA'} // "Blue" + ], operator: ''}, range: [0, 1000000], sort: [{key: 'id', operator: '+'}] }, function(result) {