Skip to content

Commit ccd3a67

Browse files
committed
Cambios en Front y Back
1 parent 2764508 commit ccd3a67

File tree

18 files changed

+38
-5
lines changed

18 files changed

+38
-5
lines changed
0 Bytes
Binary file not shown.
3 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.

backend/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
setup_admin(app)
2727
jwt = JWTManager(app)
2828

29-
3029
# Ruta de prueba
3130
@app.route('/', methods=['GET'])
3231
def saludo():
@@ -92,7 +91,7 @@ def crear_cliente():
9291
if not isinstance(data, dict):
9392
return jsonify({"Error": "El cuerpo de la solicitud debe ser un JSON válido"}), 400
9493

95-
if not all(isinstance(data.get(k), str) and data[k].strip() for k in ['nombre', 'apellido', 'cedula', 'direccion', 'telefono']):
94+
if not all(isinstance(data.get(k), str) and data[k].strip() for k in ['nombre', 'apellido', 'direccion', 'telefono']):
9695
return jsonify({"Error": "Faltan datos requeridos o son inválidos"}), 400
9796

9897

backend/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Cliente(db.Model):
2929
id_cliente = db.Column(db.Integer, primary_key=True, autoincrement=True)
3030
nombre = db.Column(db.String(20), nullable=False)
3131
apellido = db.Column(db.String(20), nullable=False)
32-
cedula = db.Column(db.String(20), unique=True, nullable=False)
32+
cedula = db.Column(db.String(20), nullable=False)
3333
direccion = db.Column(db.String(100))
3434
telefono = db.Column(db.String(15))
3535
actualizado_por = db.Column(db.Integer, db.ForeignKey('usuarios.id_us'))

frontend/node_modules/.cache/.eslintcache

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)