Skip to content

Commit

Permalink
[web] Use webargs instead of flask_restful.reqparse
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel authored and lukasjuhrich committed Sep 30, 2023
1 parent af930b7 commit 87d01d7
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 152 deletions.
3 changes: 2 additions & 1 deletion pycroft/lib/swdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import hmac
import os
import unicodedata
from datetime import date

from sqlalchemy import func

Expand All @@ -13,7 +14,7 @@
swdd_hmac_key = os.environ.get('SWDD_HASH_KEY')


def get_swdd_person_id(first_name: str, last_name: str, birthdate: str) -> int | None:
def get_swdd_person_id(first_name: str, last_name: str, birthdate: date) -> int | None:
"""
Builds a hmac hash from the given parameters and searches for a match in the Tenancy view
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ipaddr~=2.2.0
jsonschema~=3.2.0
passlib~=1.7.1
psycopg2~=2.8.6
webargs~=8.3.0
wrapt~=1.12.1
# only needed for ldap caching
ldap3~=2.5.1
Expand Down
Loading

0 comments on commit 87d01d7

Please sign in to comment.