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

Correcion de bugs

parent 76fb4c10
...@@ -42,17 +42,18 @@ class Process: ...@@ -42,17 +42,18 @@ class Process:
# Parsea los parámetros de entrada # Parsea los parámetros de entrada
relation = relation_classname_identifier[self.descriptor["idScript"]] relation = relation_classname_identifier[self.descriptor["idScript"]]
obj_script = globals()[relation](self.app) obj_script = globals()[relation](self.app)
obj_script.parser(self.descriptor) obj_script.parser(self.descriptor)
# Iniciando process # Iniciando process
self.app.logger.info(f"Iniciando procesamiento de script") self.app.logger.info(f"Iniciando procesamiento de script")
obj_script.process(source) obj_script.process(source)
# Guardando resultado # Guardando resultado
self.app.logger.info(f"Generado y guardando resultado") self.app.logger.info(f"Generando resultados")
response = obj_script.response() 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) result = self.utils.create_result(response, self.descriptor)
save = self.utils.save_result(result, self.descriptor, db_session) save = self.utils.save_result(result, self.descriptor, db_session)
if save["status"] == StatusEnum.ERROR.name: if save["status"] == StatusEnum.ERROR.name:
......
...@@ -3,11 +3,11 @@ app: ...@@ -3,11 +3,11 @@ app:
db_parameters: db_parameters:
# BD Credentials # BD Credentials
type: 'mysql' type: 'mysql'
host: '192.168.1.37' host: '192.168.0.11'
port: 13306 port: 3301
user: root user: root
password: root password: root
db: css_cuscatlan db: cusca
dialect: 'mysql+pymysql' dialect: 'mysql+pymysql'
# BD conexion configurations # BD conexion configurations
# https://docs.sqlalchemy.org/en/14/core/pooling.html # 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