Skip to content

Commit

Permalink
asegurar se pueda debugg
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 27, 2024
1 parent 9c6e1db commit edd8948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/mantenimientos.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ def cargar_mantenimiento():
#repuestos = request.form['repuestos']

usuario = Usuario.buscarPorId(id_usuario)
vehiculo = Vehiculo.encontrarPorId(id_vehiculo)

if fin is not None:
vehiculo = Vehiculo.encontrarPorId(id_vehiculo)

vehiculo.estado = "En mantenimiento"
vehiculo.operador = usuario
Vehiculo.actualizar()
Expand Down

0 comments on commit edd8948

Please sign in to comment.