Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,33 +76,23 @@ def upd_drop(lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,fetch_url,config="TEST",split="test",
|
|
76 |
box_5=[]
|
77 |
if lvl_1 !="":
|
78 |
for ea in (out_json[lvl_1]):
|
79 |
-
#print (i)
|
80 |
-
print (ea)
|
81 |
box_1.append(ea)
|
82 |
out = box_1
|
83 |
if lvl_2 !="":
|
84 |
-
for ea in (out_json[lvl_1]
|
85 |
-
|
86 |
-
print (ea)
|
87 |
-
box_2.append(ea)
|
88 |
out = box_2
|
89 |
if lvl_3 !="":
|
90 |
-
for ea in (out_json[lvl_1]
|
91 |
-
|
92 |
-
print (ea)
|
93 |
-
box_3.append(ea)
|
94 |
out = box_3
|
95 |
if lvl_4 !="":
|
96 |
-
for ea in (out_json[lvl_1]
|
97 |
-
|
98 |
-
print (ea)
|
99 |
-
box_4.append(ea)
|
100 |
out = box_4
|
101 |
if lvl_5 !="":
|
102 |
-
for ea in (out_json[lvl_1]
|
103 |
-
|
104 |
-
print (ea)
|
105 |
-
box_5.append(ea)
|
106 |
out = box_5
|
107 |
return out
|
108 |
|
|
|
76 |
box_5=[]
|
77 |
if lvl_1 !="":
|
78 |
for ea in (out_json[lvl_1]):
|
|
|
|
|
79 |
box_1.append(ea)
|
80 |
out = box_1
|
81 |
if lvl_2 !="":
|
82 |
+
for ea in (out_json[lvl_1]):
|
83 |
+
box_2.append(ea[lvl_2])
|
|
|
|
|
84 |
out = box_2
|
85 |
if lvl_3 !="":
|
86 |
+
for ea in (out_json[lvl_1]):
|
87 |
+
box_3.append(ea[lvl_2][lvl_3])
|
|
|
|
|
88 |
out = box_3
|
89 |
if lvl_4 !="":
|
90 |
+
for ea in (out_json[lvl_1]):
|
91 |
+
box_4.append(ea[lvl_2][lvl_3][lvl_4])
|
|
|
|
|
92 |
out = box_4
|
93 |
if lvl_5 !="":
|
94 |
+
for ea in (out_json[lvl_1]):
|
95 |
+
box_5.append(ea[lvl_2][lvl_3][lvl_4][lvl_5])
|
|
|
|
|
96 |
out = box_5
|
97 |
return out
|
98 |
|