Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and lucasrcezimbra committed Oct 8, 2024
1 parent 5bb6d1b commit 245e7c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cronjobs/gastos/sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
converter.register_unstructure_hook(Decimal, lambda d: str(d).replace(".", ","))
converter.register_structure_hook(
Decimal,
lambda d, _: Decimal(d.replace("R$ ", "").replace(".", "").replace(",", "."))
if d
else None,
lambda d, _: (
Decimal(d.replace("R$ ", "").replace(".", "").replace(",", ".")) if d else None
),
)


Expand Down

0 comments on commit 245e7c1

Please sign in to comment.