Skip to content

Commit

Permalink
Fix elasticity endpoint key (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm authored Nov 17, 2023
1 parent 70094f3 commit 0b02394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def elasticity_resource(elasticity_store):
PaginationQuery(),
SparseFieldsQuery(
ElasticityDoc,
default_fields=["task_id", "pretty_formula"],
default_fields=["material_id", "formula_pretty"],
),
],
header_processor=GlobalHeaderProcessor(),
Expand Down
2 changes: 1 addition & 1 deletion emmet-api/material_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
elasticity_store = MongoURIStore(
uri=db_uri,
database=f"mp_core_{db_suffix}",
key="task_id",
key="material_id",
collection_name="elasticity",
)

Expand Down

0 comments on commit 0b02394

Please sign in to comment.