Skip to content

Commit

Permalink
use enum for ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Nov 2, 2023
1 parent 6292460 commit 6b1cac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/firestore_v1/base_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b1cac2

Please sign in to comment.