コード例 #1
0
def get_user_types():
    try:
        return helpers.get_rows(TipoUsuario, tipo_usuario_schema)

    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #2
0
def get_clients():
    try:
        return helpers.get_rows(Cliente, cliente_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #3
0
def get_repairs():
    try:
        return helpers.get_rows(Reparacion, reparacion_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #4
0
ファイル: tipos_parte.py プロジェクト: EDD-3/llantera-backend
def get_part_types():
    try:
        return helpers.get_rows(TipoParte, tipo_parte_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #5
0
def get_cities():
    try:
        return helpers.get_rows(City, city_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #6
0
def get_states():
    try:
        return helpers.get_rows(State, state_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #7
0
def get_messages():
    try:
        return helpers.get_rows(Message, message_schema)
    except Exception as e:
        return jsonify({'error': str(e)}), 500
コード例 #8
0
def get_vehicles():
    try:
        return helpers.get_rows(Vehiculo,vehiculo_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #9
0
def get_repair_details():
    try:
        return helpers.get_rows(ReparacionDetalle,reparacion_detalle_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #10
0
ファイル: garantias.py プロジェクト: EDD-3/llantera-backend
def get_warranties():
    try:
        return helpers.get_rows(Garantia, garantia_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #11
0
ファイル: empleados.py プロジェクト: EDD-3/llantera-backend
def get_employees():
    try:
        return helpers.get_rows(Empleado, empleado_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
コード例 #12
0
ファイル: partes.py プロジェクト: EDD-3/llantera-backend
def get_parts():
    try:
        return helpers.get_rows(Parte,parte_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500