Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CSS-Engine-Python-Cusca
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyectos-Innovacion-2024
CSS-Engine-Python-Cusca
Commits
7a8054ed
Commit
7a8054ed
authored
May 08, 2024
by
Erly Villaroel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correcion de bugs
parent
76fb4c10
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
275 additions
and
235 deletions
+275
-235
Process.py
app/main/engine/service/Process.py
+6
-5
conf.yml
conf.yml
+3
-3
match-and-exclude-records-actions_v1.py
scripts/match-and-exclude-records-actions_v1.py
+266
-227
No files found.
app/main/engine/service/Process.py
View file @
7a8054ed
...
...
@@ -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
"Genera
do y guardando resultado
"
)
self
.
app
.
logger
.
info
(
f
"Genera
ndo 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
:
...
...
conf.yml
View file @
7a8054ed
...
...
@@ -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
:
c
ss_cuscatlan
db
:
c
usca
dialect
:
'
mysql+pymysql'
# BD conexion configurations
# https://docs.sqlalchemy.org/en/14/core/pooling.html
...
...
scripts/match-and-exclude-records-actions_v1.py
View file @
7a8054ed
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment