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
f4ccf901
Commit
f4ccf901
authored
Apr 29, 2024
by
Erly Villaroel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambios para manejar dataframe vacio
parent
cb3ae104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Utils.py
app/main/engine/util/Utils.py
+2
-4
No files found.
app/main/engine/util/Utils.py
View file @
f4ccf901
...
...
@@ -95,10 +95,10 @@ class Utils:
response
=
{
"detail"
:
result
}
try
:
if
data
.
count
()
==
0
:
raise
ValueError
(
"El dataframe esta vacio"
)
pass
exclude_pivot
=
descriptor
[
"config-params"
][
"exclude-entity-pivot"
]
group_pivot
=
descriptor
[
"params-input"
][
"pivot-config"
][
"columns-group"
]
print
(
group_pivot
)
transaction_pivot
=
descriptor
[
"params-input"
][
"pivot-config"
][
"columns-transaction"
]
group_counterpart
=
descriptor
[
"params-input"
][
"counterpart-config"
][
"columns-group"
]
...
...
@@ -158,8 +158,6 @@ class Utils:
def
save_result
(
self
,
result
,
descriptor
,
session
):
response
=
{}
try
:
if
len
(
result
)
==
0
:
raise
ValueError
(
"No existen registros para guardar"
)
d1
=
self
.
timezone
.
datetime_by_tzone
()
result_json
=
json
.
dumps
(
result
)
...
...
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