Skip to content

Commit

Permalink
Fix default ordering when directly using SortParam
Browse files Browse the repository at this point in the history
- related: #44393
  • Loading branch information
jason810496 committed Nov 26, 2024
1 parent c566985 commit 551d3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/api_fastapi/common/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def to_orm(self, select: Select) -> Select:
raise ValueError(f"Cannot set 'skip_none' to False on a {type(self)}")

if self.value is None:
return select
self.value = self.get_primary_key_string()

lstriped_orderby = self.value.lstrip("-")
column: Column | None = None
Expand Down

0 comments on commit 551d3ab

Please sign in to comment.