Commit 7a8054ed authored by Erly Villaroel's avatar Erly Villaroel

Correcion de bugs

parent 76fb4c10
......@@ -42,17 +42,18 @@ class Process:
# Parsea los parámetros de entrada
relation = relation_classname_identifier[self.descriptor["idScript"]]
obj_script = globals()[relation](self.app)
obj_script.parser(self.descriptor)
# Iniciando process
self.app.logger.info(f"Iniciando procesamiento de script")
obj_script.process(source)
# Guardando resultado
self.app.logger.info(f"Generado y guardando resultado")
self.app.logger.info(f"Generando resultados")
response = obj_script.response()
# response.show()
if response["status"] != StatusEnum.OK.name:
raise RuntimeError(response["message"])
self.app.logger.info(f"Guardando resultados")
response = response["result"]
result = self.utils.create_result(response, self.descriptor)
save = self.utils.save_result(result, self.descriptor, db_session)
if save["status"] == StatusEnum.ERROR.name:
......
......@@ -3,11 +3,11 @@ app:
db_parameters:
# BD Credentials
type: 'mysql'
host: '192.168.1.37'
port: 13306
host: '192.168.0.11'
port: 3301
user: root
password: root
db: css_cuscatlan
db: cusca
dialect: 'mysql+pymysql'
# BD conexion configurations
# https://docs.sqlalchemy.org/en/14/core/pooling.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment