Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -144,23 +144,23 @@ def find_items(lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,fetch_url,config="TEST",split="test
|
|
144 |
print (f'lvl_3 ::: {lvl_3}')
|
145 |
print (f'lvl_4 ::: {lvl_4}')
|
146 |
print (f'lvl_5 ::: {lvl_5}')
|
147 |
-
if lvl_1 !=[]:
|
148 |
for ea in (out_json[lvl_1]):
|
149 |
box_1.append(ea)
|
150 |
out = box_1
|
151 |
-
if lvl_2 !=[]:
|
152 |
for ea in (out_json[lvl_1]):
|
153 |
box_2.append(ea[lvl_2])
|
154 |
out = box_2
|
155 |
-
if lvl_3 !=[]:
|
156 |
for ea in (out_json[lvl_1]):
|
157 |
box_3.append(ea[lvl_2][lvl_3])
|
158 |
out = box_3
|
159 |
-
if lvl_4 !=[]:
|
160 |
for ea in (out_json[lvl_1]):
|
161 |
box_4.append(ea[lvl_2][lvl_3][lvl_4])
|
162 |
out = box_4
|
163 |
-
if lvl_5 !=[]:
|
164 |
for ea in (out_json[lvl_1]):
|
165 |
box_5.append(ea[lvl_2][lvl_3][lvl_4][lvl_5])
|
166 |
out = box_5
|
|
|
144 |
print (f'lvl_3 ::: {lvl_3}')
|
145 |
print (f'lvl_4 ::: {lvl_4}')
|
146 |
print (f'lvl_5 ::: {lvl_5}')
|
147 |
+
if lvl_1 !=[] and lvl_1!=None:
|
148 |
for ea in (out_json[lvl_1]):
|
149 |
box_1.append(ea)
|
150 |
out = box_1
|
151 |
+
if lvl_2 !=[] and lvl_2!=None:
|
152 |
for ea in (out_json[lvl_1]):
|
153 |
box_2.append(ea[lvl_2])
|
154 |
out = box_2
|
155 |
+
if lvl_3 !=[] and lvl_3!=None:
|
156 |
for ea in (out_json[lvl_1]):
|
157 |
box_3.append(ea[lvl_2][lvl_3])
|
158 |
out = box_3
|
159 |
+
if lvl_4 !=[] and lvl_4!=None:
|
160 |
for ea in (out_json[lvl_1]):
|
161 |
box_4.append(ea[lvl_2][lvl_3][lvl_4])
|
162 |
out = box_4
|
163 |
+
if lvl_5 !=[] and lvl_5!=None:
|
164 |
for ea in (out_json[lvl_1]):
|
165 |
box_5.append(ea[lvl_2][lvl_3][lvl_4][lvl_5])
|
166 |
out = box_5
|