Skip to content

Commit

Permalink
Merge pull request #224 from jessicamann/master
Browse files Browse the repository at this point in the history
use filter key for query to fix warning
  • Loading branch information
AxeemHaider committed Jun 26, 2024
2 parents 70446a0 + 07cbdb9 commit 46cbbe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fireo/queries/filter_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from google.api_core.exceptions import MethodNotImplemented
from google.cloud import firestore
from google.cloud.firestore_v1 import FieldFilter
from google.cloud.firestore_v1.field_path import FieldPath

from fireo.database import db
Expand Down Expand Up @@ -217,7 +218,7 @@ def query(self):
ref = self.get_ref()
# parse where filter
for f in self._parse_where():
ref = ref.where(*f)
ref = ref.where(filter=FieldFilter(*f))
# Apply limit
if self._limit:
ref = ref.limit(self._limit)
Expand Down

0 comments on commit 46cbbe2

Please sign in to comment.