Skip to content

Commit

Permalink
Fix registration
Browse files Browse the repository at this point in the history
  • Loading branch information
peprolinbot committed Jul 9, 2024
1 parent 76a3758 commit 7fc6a2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions busGal_api/accounts/xentenovaqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .qrutils import create_qr as _create_qr
from datetime import datetime, date
from dateutil.relativedelta import relativedelta
import textwrap


_rest_adapter = RestAdapter(BASE_URL)
Expand Down Expand Up @@ -260,12 +261,12 @@ def register_account(name: str, birth_date: date, email: str, identity_number: s
data={
"birthDate": birth_date.strftime("%Y-%m-%d"),
"email": email,
"frontIdentityDocumentPhoto": identity_front_img,
"frontIdentityDocumentPhoto": textwrap.fill(identity_front_img, 76)+"\n",
"idAccountExternalApp": external_user_id,
"idDevice": device_id,
"idProductList": [],
"identityDocumentNumber": identity_number,
"name": name,
"rearIdentityDocumentPhoto": identity_rear_img,
"rearIdentityDocumentPhoto": textwrap.fill(identity_rear_img, 76)+"\n",
"surname": ""
})

0 comments on commit 7fc6a2f

Please sign in to comment.