Skip to content

Commit

Permalink
sin marca en vehiculos
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 19, 2024
1 parent e7448f6 commit b33fd84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/vehiculos.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ def cargar_vehiculo():
return render_template('altaVehiculo.html')

#capturamos los datos
marca = str(request.form['marca'])

modelo = str(request.form['modelo'])

patente = str(request.form['patente'])

vehiculo = Vehiculo(marca=marca, modelo=modelo, matricula=patente)
vehiculo = Vehiculo(modelo=modelo, matricula=patente)


#deberia hacer verificaciones, al menos sobre patente repetida
Expand All @@ -43,7 +43,7 @@ def cargar_vehiculo():
@vehiculos.route('/vehiculos/mod', methods=['PUT'])
def mod_vehiculo():
#capturo los datos
marca = str(request.form['marca'])

modelo = str(request.form['modelo'])

patente = str(request.form['patente'])
Expand All @@ -52,7 +52,7 @@ def mod_vehiculo():
coincidencia = Vehiculo.encontrarPorPatente(patente)

#actualizo y guardo cambios
coincidencia.marca = marca

coincidencia.modelo = modelo
coincidencia.matricula = patente
coincidencia.anio = anio
Expand Down

0 comments on commit b33fd84

Please sign in to comment.