From 6b1cac2577835704a559712c8fd1601b221124a7 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Thu, 2 Nov 2023 16:34:41 -0700 Subject: [PATCH] use enum for ascending --- google/cloud/firestore_v1/base_query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/firestore_v1/base_query.py b/google/cloud/firestore_v1/base_query.py index b08b75d2af..e05cf8be89 100644 --- a/google/cloud/firestore_v1/base_query.py +++ b/google/cloud/firestore_v1/base_query.py @@ -868,7 +868,7 @@ def _normalize_orders(self) -> list: _has_snapshot_cursor = True if _has_snapshot_cursor: # added orders should use direction of last order - direction = orders[-1].direction if orders else "ASCENDING" # enum? + direction = orders[-1].direction if orders else BaseQuery.ASCENDING order_keys = [order.field.field_path for order in orders] for filter_ in self._field_filters: # FieldFilter.Operator should not compare equal to