Omnibus commited on
Commit
6c531ab
1 Parent(s): 13062db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -44,7 +44,9 @@ def sitemap(url,level):
44
  uri=f'{uri1}//{uri3}'
45
  print(uri)
46
  out_list=link_find(f"{uri}{ea['URL']}")
47
- link1['TREE'][i]=out_list
 
 
48
  if level>=3:
49
  for n,na in enumerate(link1['TREE'][i]['TREE']):
50
  print(na)
@@ -56,7 +58,8 @@ def sitemap(url,level):
56
  uri0=f'{uri11}//{uri33}'
57
  print(uri0)
58
  out_list1=link_find(f"{uri0}{na['URL']}")
59
- link1['TREE'][i]['TREE'][n]=out_list1
 
60
  except Exception as e:
61
  print (e)
62
  except Exception as e:
 
44
  uri=f'{uri1}//{uri3}'
45
  print(uri)
46
  out_list=link_find(f"{uri}{ea['URL']}")
47
+ #link1['TREE'][i]=out_list
48
+ link1['TREE'].append(out_list)
49
+
50
  if level>=3:
51
  for n,na in enumerate(link1['TREE'][i]['TREE']):
52
  print(na)
 
58
  uri0=f'{uri11}//{uri33}'
59
  print(uri0)
60
  out_list1=link_find(f"{uri0}{na['URL']}")
61
+ #link1['TREE'][i]['TREE'][n]=out_list1
62
+ link1['TREE'][i]['TREE'].append(out_list1)
63
  except Exception as e:
64
  print (e)
65
  except Exception as e: