Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
felipao-mx committed Dec 13, 2023
1 parent 1839cf5 commit 16e88f4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions speid/commands/spei.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,18 @@ def reconciliate_deposits(

for clave_rastreo in claves_rastreo_set:
try:
transaction = Transaction.objects.get(
Transaction.objects.get(
clave_rastreo=clave_rastreo,
fecha_operacion=fecha_operacion.date(),
)
except DoesNotExist:
transaction = None

if transaction:
not_processed.append(clave_rastreo)
else:
processed_clave_rastreo = apply_stp_deposit(
clave_rastreo, fecha_operacion.date()
)
if not processed_clave_rastreo:
not_processed.append(clave_rastreo)
else:
not_processed.append(clave_rastreo)

click.echo(f'No procesadas: {not_processed}')

Expand Down

0 comments on commit 16e88f4

Please sign in to comment.