From ce7fa33653b6d5e5efc5796c0e176dcaeaad8852 Mon Sep 17 00:00:00 2001 From: jrafaelrn Date: Thu, 2 May 2024 14:34:07 -0300 Subject: [PATCH] add array when add card details --- src/functions/bd_update_banks/bank_sicredi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/bd_update_banks/bank_sicredi.py b/src/functions/bd_update_banks/bank_sicredi.py index 00ad79e..27e771f 100644 --- a/src/functions/bd_update_banks/bank_sicredi.py +++ b/src/functions/bd_update_banks/bank_sicredi.py @@ -183,7 +183,7 @@ def import_card_sicredi(extrato_file, balance, date_payment_card, conta): DATA_JSON = json.dumps(DATA) - bd.insert(DATA_JSON) + bd.insert([DATA_JSON]) except Exception as e: msg = f'Linha inválida: {linha}\n\t error: {e}'