Skip to content

Commit

Permalink
fixup! Enable submission of repayment requests
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Oct 20, 2023
1 parent 57eb447 commit 1c84ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycroft/lib/finance/repayment/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IBANField(fields.Field):
to a string.
"""

def _deserialize(self, value, attr, data, **kwargs) -> IBAN:
def _deserialize(self, value, attr, data, **kwargs):

Check failure on line 10 in pycroft/lib/finance/repayment/fields.py

View workflow job for this annotation

GitHub Actions / python-lint

Error

Function is missing a type annotation [no-untyped-def]
try:
return IBAN(value, validate_bban=True)
except ValueError as error:
Expand Down
4 changes: 3 additions & 1 deletion web/api/v0/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,9 @@ def get(self, user_id: int) -> Response:
},
location="form",
)
def post(self, user_id: int, beneficiary: str, iban: str, amount: Decimal) -> Response:
def post(
self, user_id: int, beneficiary: str, iban: str, amount: Decimal
) -> Response:
current_app.logger.warning({beneficiary, iban, amount})
return jsonify({"success": True})

Expand Down

0 comments on commit 1c84ec6

Please sign in to comment.