Skip to content

Commit

Permalink
Fix tests after 4b23632
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Sep 30, 2024
1 parent a6c0665 commit 3fd6f44
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/blueprints/finance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,9 +1015,7 @@ def accounts_show(account_id: int) -> ResponseReturnValue:
)


def _format_row(
split: Split, style: str, prefix: str | None = None
) -> dict[str, t.Any]:
def _format_row(split: Split, style: str | None, prefix: str | None = None) -> dict[str, t.Any]:
inverted = style == "inverted"
row = FinanceRow(
posted_at=datetime_filter(split.transaction.posted_at),
Expand Down Expand Up @@ -1059,8 +1057,6 @@ def _prefixed_merge(
@bp.route('/accounts/<int:account_id>/json')
def accounts_show_json(account_id: int) -> ResponseReturnValue:
style = request.args.get('style')
if style is None:
abort(400, "query parameter `style` missing")
limit = request.args.get('limit', type=int)
offset = request.args.get('offset', type=int)
sort_by = request.args.get('sort', default="valid_on")
Expand Down

0 comments on commit 3fd6f44

Please sign in to comment.