From 24a992e6b0999a2e28feb36dc78332ab481f62d6 Mon Sep 17 00:00:00 2001 From: munrojm Date: Fri, 17 Nov 2023 16:33:20 -0800 Subject: [PATCH] Fix hint scheme bug --- emmet-api/emmet/api/routes/materials/summary/hint_scheme.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emmet-api/emmet/api/routes/materials/summary/hint_scheme.py b/emmet-api/emmet/api/routes/materials/summary/hint_scheme.py index 75e7ad5a01..2a7ab38271 100644 --- a/emmet-api/emmet/api/routes/materials/summary/hint_scheme.py +++ b/emmet-api/emmet/api/routes/materials/summary/hint_scheme.py @@ -18,8 +18,8 @@ def generate_hints(self, query): elif "composition_reduced" in pure_params: hints["count_hint"] = {"composition_reduced.$**": 1} else: - for param in pure_params: - if param not in ["deprecated", "builder_meta"]: + for param in query["criteria"]: + if param not in ["deprecated", "builder_meta.license"]: hints["count_hint"] = { "deprecated": 1, "builder_meta.license": 1,