From 00752081ed3a1a68cdbf45c6730f491a723c7d98 Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Wed, 1 Dec 2021 10:57:48 -0800 Subject: [PATCH] Patch hint schemes (#447) * Patch hint schemes * More linting --- src/mp_api/routes/materials/hint_scheme.py | 2 ++ src/mp_api/routes/summary/hint_scheme.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mp_api/routes/materials/hint_scheme.py b/src/mp_api/routes/materials/hint_scheme.py index 64aef419..41fb29b7 100644 --- a/src/mp_api/routes/materials/hint_scheme.py +++ b/src/mp_api/routes/materials/hint_scheme.py @@ -10,3 +10,5 @@ def generate_hints(self, query): if "nelements" in query["criteria"]: return {"hint": {"nelements": 1}} + else: + return {"hint": {}} diff --git a/src/mp_api/routes/summary/hint_scheme.py b/src/mp_api/routes/summary/hint_scheme.py index ac5913ef..354891a2 100644 --- a/src/mp_api/routes/summary/hint_scheme.py +++ b/src/mp_api/routes/summary/hint_scheme.py @@ -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": {}}