Commit f4ccf901 authored by Erly Villaroel's avatar Erly Villaroel

Cambios para manejar dataframe vacio

parent cb3ae104
...@@ -95,10 +95,10 @@ class Utils: ...@@ -95,10 +95,10 @@ class Utils:
response = {"detail":result} response = {"detail":result}
try: try:
if data.count() == 0 : if data.count() == 0 :
raise ValueError("El dataframe esta vacio") pass
exclude_pivot = descriptor["config-params"]["exclude-entity-pivot"] exclude_pivot = descriptor["config-params"]["exclude-entity-pivot"]
group_pivot = descriptor["params-input"]["pivot-config"]["columns-group"] group_pivot = descriptor["params-input"]["pivot-config"]["columns-group"]
print(group_pivot)
transaction_pivot = descriptor["params-input"]["pivot-config"]["columns-transaction"] transaction_pivot = descriptor["params-input"]["pivot-config"]["columns-transaction"]
group_counterpart = descriptor["params-input"]["counterpart-config"]["columns-group"] group_counterpart = descriptor["params-input"]["counterpart-config"]["columns-group"]
...@@ -158,8 +158,6 @@ class Utils: ...@@ -158,8 +158,6 @@ class Utils:
def save_result(self, result, descriptor, session): def save_result(self, result, descriptor, session):
response = {} response = {}
try: try:
if len(result) == 0:
raise ValueError("No existen registros para guardar")
d1 = self.timezone.datetime_by_tzone() d1 = self.timezone.datetime_by_tzone()
result_json = json.dumps(result) result_json = json.dumps(result)
......
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