Skip to content

Commit 8977097

Browse files
authored
Merge pull request #495 from minhsueh/ctk_app
correct api endpoint from search_summary_docs -> search
2 parents bd75b78 + 7b7dd62 commit 8977097

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crystal_toolkit/components/search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def get_human_readable_results_from_search_term(search_term):
120120
fields = ["material_id", "formula_pretty", "energy_above_hull", "symmetry"]
121121
with MPRester() as mpr:
122122
try:
123-
entries = mpr.summary.search_summary_docs(
124-
formula=search_term, fields=fields
125-
)
123+
entries = mpr.summary.search(formula=search_term, fields=fields)
126124
except MPRestError:
127125
entries = []
128126

0 commit comments

Comments
 (0)