Skip to content

Commit

Permalink
Merge pull request #107 from husqvarnagroup/gardena/eb/python3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Aug 30, 2024
2 parents 2857da0 + 6203249 commit 3fd3d34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion goosebit/ui/bff/devices/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def convert(cls, request: Request, query, search_filter, total_records):
query = query.filter(search_filter(search_value))

if order_column:
query = query.order_by(f"{"-" if order_dir == "desc" else ""}{order_column}")
query = query.order_by(f"{'-' if order_dir == 'desc' else ''}{order_column}")

filtered_records = await query.count()
devices = await query.offset(start).limit(length).all()
Expand Down
2 changes: 1 addition & 1 deletion goosebit/ui/bff/rollouts/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def convert(cls, request: Request, query, search_filter, total_records):
query = query.filter(search_filter(search_value))

if order_column:
query = query.order_by(f"{"-" if order_dir == "desc" else ""}{order_column}")
query = query.order_by(f"{'-' if order_dir == 'desc' else ''}{order_column}")

filtered_records = await query.count()
rollouts = await query.offset(start).limit(length).all()
Expand Down
2 changes: 1 addition & 1 deletion goosebit/ui/bff/software/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def convert(cls, request: Request, query, search_filter, total_records):
query = query.filter(search_filter(search_value))

if order_column:
query = query.order_by(f"{"-" if order_dir == "desc" else ""}{order_column}")
query = query.order_by(f"{'-' if order_dir == 'desc' else ''}{order_column}")

filtered_records = await query.count()
devices = await query.offset(start).limit(length).all()
Expand Down

0 comments on commit 3fd3d34

Please sign in to comment.