Omnibus commited on
Commit
cf4d64d
·
verified ·
1 Parent(s): 772d340

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -471,13 +471,13 @@ def create_index():
471
  for k in ea['keywords']:
472
  print(k)
473
  print(ea['file_name'])
474
- for ii in ind:
475
- if k in ii:
476
- print("Adding to list")
477
- ind[k].append(ea['file_name'])
478
- else:
479
- print("Adding new Value")
480
- ind.append({k:[ea['file_name']]})
481
  except Exception as e:
482
  print (e)
483
 
 
471
  for k in ea['keywords']:
472
  print(k)
473
  print(ea['file_name'])
474
+ #for ii in ind[0]:
475
+ if k in ind[0].keys():
476
+ print("Adding to list")
477
+ ind[0][k].append(ea['file_name'])
478
+ else:
479
+ print("Adding new Value")
480
+ ind.update({k:[ea['file_name']]})
481
  except Exception as e:
482
  print (e)
483