Skip to content

Commit

Permalink
Use default parser version in Mongo collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed May 29, 2023
1 parent 03ab81e commit 0ec0220
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions optimade/server/entry_collections/mongo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Any, Dict, List, Tuple, Type, Union

from optimade.filterparser import LarkParser
from optimade.filtertransformers.mongo import MongoTransformer
from optimade.models import EntryResource
from optimade.server.config import CONFIG, SupportedBackend
Expand Down Expand Up @@ -58,7 +57,6 @@ def __init__(
MongoTransformer(mapper=resource_mapper),
)

self.parser = LarkParser(version=(1, 0, 0), variant="default")
self.collection = CLIENT[database][name]

# check aliases do not clash with mongo operators
Expand Down

0 comments on commit 0ec0220

Please sign in to comment.