Skip to content

Commit

Permalink
Merge pull request #61 from husqvarnagroup/gardena/eb/fixes
Browse files Browse the repository at this point in the history
Fixes and cleanups
  • Loading branch information
b-rowan authored Aug 9, 2024
2 parents 7480359 + 37e38db commit 72a2be0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion goosebit/api/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def filter_data(request, query, search_filter, parse, 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: 0 additions & 2 deletions goosebit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from goosebit.permissions import Permissions

BASE_DIR = Path(__file__).resolve().parent.parent
TOKEN_SWU_DIR = BASE_DIR.joinpath("swugen")
SWUPDATE_FILES_DIR = BASE_DIR.joinpath("swupdate")
UPDATES_DIR = BASE_DIR.joinpath("updates")
DB_MIGRATIONS_LOC = BASE_DIR.joinpath("migrations")

Expand Down

0 comments on commit 72a2be0

Please sign in to comment.