Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -457,7 +457,7 @@ def create_index():
|
|
457 |
|
458 |
if m.status_code==200:
|
459 |
main = json.loads(m.text)
|
460 |
-
print (f'main::\n{main}')
|
461 |
if not r.status_code==200:
|
462 |
main = []
|
463 |
try:
|
@@ -475,12 +475,13 @@ def create_index():
|
|
475 |
try:
|
476 |
if k in ind[0].keys():
|
477 |
print("Adding to list")
|
478 |
-
ind[k].append(ea['file_name'])
|
479 |
else:
|
480 |
print("Adding new Value")
|
481 |
ind[0].update({k:[ea['file_name']]})
|
482 |
except Exception as e:
|
483 |
print (e)
|
|
|
484 |
#ind.append({k:[ea['file_name']]})
|
485 |
|
486 |
except Exception as e:
|
|
|
457 |
|
458 |
if m.status_code==200:
|
459 |
main = json.loads(m.text)
|
460 |
+
#print (f'main::\n{main}')
|
461 |
if not r.status_code==200:
|
462 |
main = []
|
463 |
try:
|
|
|
475 |
try:
|
476 |
if k in ind[0].keys():
|
477 |
print("Adding to list")
|
478 |
+
ind[0][k].append(ea['file_name'])
|
479 |
else:
|
480 |
print("Adding new Value")
|
481 |
ind[0].update({k:[ea['file_name']]})
|
482 |
except Exception as e:
|
483 |
print (e)
|
484 |
+
ind[0].append({k:[ea['file_name']]})
|
485 |
#ind.append({k:[ea['file_name']]})
|
486 |
|
487 |
except Exception as e:
|