Skip to content

Commit

Permalink
add array to conteudo before update
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafaelrn committed Apr 23, 2024
1 parent cce5623 commit 1d3ad22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/bd_transaction/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def insert_transaction(date_trx, account, original_description, document, entity
print(f'ID to add to Bank: {id_bank} - LINE: {line}')

# Append new row
row = [[id_bank], [date_trx], [account], [original_description], [document], [entity_bank], [type_trx], [value], [balance]]
row = [id_bank, date_trx, account, original_description, document, entity_bank, type_trx, value, balance]

#Save BD
for col in range(ord('a'), ord('i') + 1):
coluna = chr(col)
conteudo = row[col - ord('a')]
conteudo = [row[col - ord('a')]]

if conteudo == '':
continue
Expand Down

0 comments on commit 1d3ad22

Please sign in to comment.