@@ -415,7 +415,7 @@ async def update_registered_issuers(self):
415
415
416
416
invoice_providers_response = await session .get_registered_providers_page ()
417
417
418
- invoice_providers_response_pquery = pq (invoice_providers_response )
418
+ invoice_providers_response_pquery = pq (invoice_providers_response . decode ( "iso-8859-2" ). encode ( 'utf-8' ) )
419
419
for row in invoice_providers_response_pquery .find (".table > tbody > tr" ).items ():
420
420
issuer_name = row .children ("td:nth-child(1)" ).text ()
421
421
issuer_id = row .children ("td:nth-child(2)" ).text ()
@@ -454,13 +454,13 @@ async def update_invoices(self):
454
454
await session .get_main_page ()
455
455
456
456
search_page = await session .get_invoice_search_page ()
457
- search_page_pyquery = pq (search_page )
457
+ search_page_pyquery = pq (search_page . decode ( "iso-8859-2" ). encode ( 'utf-8' ) )
458
458
459
459
vfw_token = next (search_page_pyquery .find ('form[action=szamla_search_submit] input[name=vfw_token]' ).items ()).val ()
460
460
461
461
search_result = await session .post_search_invoice ('' , '' , vfw_token , from_date , to_date )
462
462
463
- invoices_pyquery = pq (search_result )
463
+ invoices_pyquery = pq (search_result . decode ( "iso-8859-2" ). encode ( 'utf-8' ) )
464
464
possible_new_paid_invoices : List [PaidInvoice ] = []
465
465
possible_new_unpaid_invoices : List [Invoice ] = []
466
466
index = 0
@@ -474,7 +474,7 @@ async def update_invoices(self):
474
474
elif self ._is_invoice_paid (row ):
475
475
await session .get_invoice_page (index )
476
476
invoice_history_page = await session .get_invoice_history_page ()
477
- invoice_history_page_response_pyquery = pq (invoice_history_page )
477
+ invoice_history_page_response_pyquery = pq (invoice_history_page . decode ( "iso-8859-2" ). encode ( 'utf-8' ) )
478
478
for history_row in invoice_history_page_response_pyquery .find ('.table tr' ).items ():
479
479
if history_row .children ('td:nth-child(4)' ).text () == '**Sikeres fizetés**' :
480
480
paid_at = datetime .strptime (
0 commit comments