From d8126fd64a5d81b9d3d30ed19b199765e5da160f Mon Sep 17 00:00:00 2001 From: Abhijith Date: Tue, 17 Sep 2019 11:30:25 -0500 Subject: [PATCH] the filter != is supported for form fields like bandgap, natoms, etc --- qmpy/rester/qmpy_rester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmpy/rester/qmpy_rester.py b/qmpy/rester/qmpy_rester.py index adb0a7d3..cc71ffaa 100644 --- a/qmpy/rester/qmpy_rester.py +++ b/qmpy/rester/qmpy_rester.py @@ -56,7 +56,7 @@ def get_oqmd_phases(self, verbose=True, **kwargs): if k in kwargs_list: url_args.append('%s=%s' %(k, kwargs[k])) elif k in filter_list: - if '>' in kwargs[k] or '<' in kwargs[k]: + if '>' in kwargs[k] or '<' in kwargs[k] or '!' in kwargs[k]: filter_args.append('%s%s' %(k, kwargs[k])) else: filter_args.append('%s=%s' %(k, kwargs[k]))