Skip to content

Commit

Permalink
distancia en metros
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 22, 2024
1 parent a82b63a commit 59c703e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/bitacora_asignaciones.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ def agregarFechaHoraDesasignacion(id, distancia_final):
bitacora = BitacoraAsignaciones.encontrarPorId(id)
bitacora.fecha_hora_desasignacion = func.now()
bitacora.distancia_final = distancia_final
bitacora.distancia_recorrida = round((distancia_final - bitacora.distancia_inicial) / 1000, 2)
bitacora.distancia_recorrida = distancia_final - bitacora.distancia_inicial
db.session.commit()

0 comments on commit 59c703e

Please sign in to comment.