Skip to content

Commit

Permalink
hotfix: formulario de conta retoma valores padrao ao inserir
Browse files Browse the repository at this point in the history
  • Loading branch information
VFLins committed Aug 30, 2024
1 parent f1ad479 commit d434cc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cashd/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def format_vars(self):
except Exception as msg_erro:
raise ErroDeFormatacao(f"Erro em '{var}':\n{str(msg_erro)}")

def despejar(self):
def despejar(self) -> dict:
self.format_vars()
return deepcopy(vars(self))

Expand Down Expand Up @@ -292,6 +292,11 @@ def __repr__(self):
+ f"{self.Estado=}"
)

def despejar(self) -> dict:
form = super().despejar()
self.__init__()
return form


class FormTransac(FormObj):
def __init__(
Expand Down

0 comments on commit d434cc7

Please sign in to comment.