diff --git a/scout/adapter/mongo/query.py b/scout/adapter/mongo/query.py
index 3a07b82d8..055963b99 100644
--- a/scout/adapter/mongo/query.py
+++ b/scout/adapter/mongo/query.py
@@ -114,15 +114,16 @@ class QueryHandler(object):
             cadd_query = {'cadd_score': {'$gt': float(cadd)}}
             logger.debug("Adding cadd_score: %s to query" % cadd)
 
-            if query.get('cadd_inclusive') == 'yes':
+            if query.get('cadd_inclusive') == True:
                 cadd_query = {
                     '$or': [
                         cadd_query,
                         {'cadd_score': {'$exists': False}}
-                    ]}
+                        ]}
                 logger.debug("Adding cadd inclusive to query")
 
             mongo_query['$and'].append(cadd_query)
+                    
 
         if query.get('genetic_models'):
             models = query['genetic_models']

CADD score filter monday-issue! 
Thank you kindly for the quick inclusion of CADD score filtering! Will make a couple of our doctors very happy.

One major caveat though: the current version seems to filter out unknown CADD scores as well (similar to the unknown frequency bug)! Not intended usage..

diff --git a/tests/adapter/test_query.py b/tests/adapter/test_query.py
index e5aee3586..2d12aa555 100644
--- a/tests/adapter/test_query.py
+++ b/tests/adapter/test_query.py
@@ -57,7 +57,7 @@ def test_build_cadd_exclusive(adapter):
 def test_build_cadd_inclusive(adapter):
     case_id = 'cust000'
     cadd = 10.0
-    cadd_inclusive = 'yes'
+    cadd_inclusive = True
     query = {'cadd_score': cadd, 'cadd_inclusive': cadd_inclusive}
 
     mongo_query = adapter.build_query(case_id, query=query)

pip install -e .[dev]
parse_log_pytest
requirements.txt
cython pytest pytest-flask pytest-cov
apt-get update apt-get install -y gcc
3.9
requirements.txt requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
babel==2.17.0
blinker==1.9.0
cachelib==0.13.0
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
coloredlogs==15.0.1
coverage==7.8.0
Cython==3.0.12
cyvcf2==0.31.1
dnspython==2.7.0
dominate==2.9.1
exceptiongroup==1.2.2
Flask==3.1.0
flask-babel==4.0.0
Flask-Bootstrap==3.3.7.1
Flask-DebugToolbar==0.16.0
Flask-Login==0.6.3
Flask-Mail==0.10.0
Flask-Markdown==0.3
Flask-OAuthlib==0.9.6
Flask-PyMongo==3.0.1
Flask-WTF==1.2.2
humanfriendly==10.0
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
intervaltree==3.1.0
invoke==2.2.0
itsdangerous==2.2.0
Jinja2==3.1.6
livereload==2.7.1
loqusdb==2.6.0
Markdown==3.7
MarkupSafe==3.0.2
mongo-adapter==0.3.3
mongomock==4.3.0
numpy==2.0.2
oauthlib==2.1.0
packaging==24.2
path==17.1.0
path.py==12.5.0
ped-parser==1.6.6
pluggy==1.5.0
pymongo==4.11.3
pytest==8.3.5
pytest-cov==6.0.0
pytest-flask==1.3.0
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
query-phenomizer==1.2.1
requests==2.32.3
requests-oauthlib==1.1.0
-e git+https://github.com/Clinical-Genomics/scout.git@7b2419a20dd5dbae88f21b9a2afe2c2d4ad5277f#egg=scout_browser
sentinels==1.0.0
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
tornado==6.4.2
urllib3==2.3.0
vcftoolbox==1.5.1
visitor==0.1.3
Werkzeug==3.1.3
WTForms==3.2.1
zipp==3.21.0

name: scout
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - babel==2.17.0
      - blinker==1.9.0
      - cachelib==0.13.0
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - coloredlogs==15.0.1
      - coverage==7.8.0
      - cython==3.0.12
      - cyvcf2==0.31.1
      - dnspython==2.7.0
      - dominate==2.9.1
      - exceptiongroup==1.2.2
      - flask==3.1.0
      - flask-babel==4.0.0
      - flask-bootstrap==3.3.7.1
      - flask-debugtoolbar==0.16.0
      - flask-login==0.6.3
      - flask-mail==0.10.0
      - flask-markdown==0.3
      - flask-oauthlib==0.9.6
      - flask-pymongo==3.0.1
      - flask-wtf==1.2.2
      - humanfriendly==10.0
      - idna==3.10
      - importlib-metadata==8.6.1
      - iniconfig==2.1.0
      - intervaltree==3.1.0
      - invoke==2.2.0
      - itsdangerous==2.2.0
      - jinja2==3.1.6
      - livereload==2.7.1
      - loqusdb==2.6.0
      - markdown==3.7
      - markupsafe==3.0.2
      - mongo-adapter==0.3.3
      - mongomock==4.3.0
      - numpy==2.0.2
      - oauthlib==2.1.0
      - packaging==24.2
      - path==17.1.0
      - path-py==12.5.0
      - ped-parser==1.6.6
      - pluggy==1.5.0
      - pymongo==4.11.3
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - pytest-flask==1.3.0
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - pyyaml==6.0.2
      - query-phenomizer==1.2.1
      - requests==2.32.3
      - requests-oauthlib==1.1.0
      - sentinels==1.0.0
      - six==1.17.0
      - sortedcontainers==2.4.0
      - tomli==2.2.1
      - tornado==6.4.2
      - urllib3==2.3.0
      - vcftoolbox==1.5.1
      - visitor==0.1.3
      - werkzeug==3.1.3
      - wtforms==3.2.1
      - zipp==3.21.0
prefix: /opt/conda/envs/scout

tests/adapter/test_query.py::test_build_cadd_inclusive
tests/adapter/test_query.py::test_build_query tests/adapter/test_query.py::test_build_thousand_g_query tests/adapter/test_query.py::test_build_non_existing_thousand_g tests/adapter/test_query.py::test_build_cadd_exclusive tests/adapter/test_query.py::test_build_thousand_g_and_cadd tests/adapter/test_query.py::test_build_chrom tests/adapter/test_query.py::test_build_range
scout/adapter/mongo/query.py
scout/adapter/mongo/query.py