Skip to content

Commit

Permalink
Fix hint scheme bug
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Nov 18, 2023
1 parent bf8a4ef commit 24a992e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmet-api/emmet/api/routes/materials/summary/hint_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 24a992e

Please sign in to comment.