Omnibus commited on
Commit
f6c149f
1 Parent(s): 142f6f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -127,23 +127,23 @@ def find_items(lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,fetch_url,config="TEST",split="test
127
  box_3=[]
128
  box_4=[]
129
  box_5=[]
130
- if lvl_1 !="":
131
  for ea in (out_json[lvl_1]):
132
  box_1.append(ea)
133
  out = box_1
134
- if lvl_2 !="":
135
  for ea in (out_json[lvl_1]):
136
  box_2.append(ea[lvl_2])
137
  out = box_2
138
- if lvl_3 !="":
139
  for ea in (out_json[lvl_1]):
140
  box_3.append(ea[lvl_2][lvl_3])
141
  out = box_3
142
- if lvl_4 !="":
143
  for ea in (out_json[lvl_1]):
144
  box_4.append(ea[lvl_2][lvl_3][lvl_4])
145
  out = box_4
146
- if lvl_5 !="":
147
  for ea in (out_json[lvl_1]):
148
  box_5.append(ea[lvl_2][lvl_3][lvl_4][lvl_5])
149
  out = box_5
 
127
  box_3=[]
128
  box_4=[]
129
  box_5=[]
130
+ if lvl_1 !=[]:
131
  for ea in (out_json[lvl_1]):
132
  box_1.append(ea)
133
  out = box_1
134
+ if lvl_2 !=[]:
135
  for ea in (out_json[lvl_1]):
136
  box_2.append(ea[lvl_2])
137
  out = box_2
138
+ if lvl_3 !=[]:
139
  for ea in (out_json[lvl_1]):
140
  box_3.append(ea[lvl_2][lvl_3])
141
  out = box_3
142
+ if lvl_4 !=[]:
143
  for ea in (out_json[lvl_1]):
144
  box_4.append(ea[lvl_2][lvl_3][lvl_4])
145
  out = box_4
146
+ if lvl_5 !=[]:
147
  for ea in (out_json[lvl_1]):
148
  box_5.append(ea[lvl_2][lvl_3][lvl_4][lvl_5])
149
  out = box_5