Skip to content

Commit

Permalink
EOS now uses numeric query
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed May 28, 2021
1 parent d5818a6 commit 17bb254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
40 changes: 0 additions & 40 deletions src/mp_api/routes/eos/query_operators.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/mp_api/routes/eos/resources.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from maggma.api.query_operator.dynamic import NumericQuery
from maggma.api.resource import ReadOnlyResource
from mp_api.routes.eos.models import EOSDoc

from maggma.api.query_operator import PaginationQuery, SortQuery, SparseFieldsQuery
from mp_api.routes.eos.query_operators import EnergyVolumeQuery


def eos_resource(eos_store):
resource = ReadOnlyResource(
eos_store,
EOSDoc,
query_operators=[
EnergyVolumeQuery(),
NumericQuery(model=EOSDoc),
SortQuery(),
PaginationQuery(),
SparseFieldsQuery(EOSDoc, default_fields=["task_id"]),
Expand Down

0 comments on commit 17bb254

Please sign in to comment.