Skip to content

Commit

Permalink
Patch hint schemes (#447)
Browse files Browse the repository at this point in the history
* Patch hint schemes

* More linting
  • Loading branch information
munrojm committed Dec 1, 2021
1 parent 2fb5a95 commit 0075208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mp_api/routes/materials/hint_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ def generate_hints(self, query):

if "nelements" in query["criteria"]:
return {"hint": {"nelements": 1}}
else:
return {"hint": {}}
2 changes: 2 additions & 0 deletions src/mp_api/routes/summary/hint_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ def generate_hints(self, query):
return {"hint": {"nelements": 1}}
elif "has_props" in query["criteria"]:
return {"hint": {"has_props": 1}}
else:
return {"hint": {}}

0 comments on commit 0075208

Please sign in to comment.