Omnibus commited on
Commit
35c6ecf
1 Parent(s): bf39f2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -75,6 +75,7 @@ def sort_doc(in_list,steps_in=0,control=None):
75
  print(f'{ea_dig} :: {list(control_json["control"][ea_dig])[0]}')
76
  step_cont_box.append(int(list(control_json["control"][ea_dig])[0]))
77
  print(step_cont_box)
 
78
  if not lod:
79
  print("NOT LOD")
80
  for ii in range(steps):
@@ -102,7 +103,7 @@ def sort_doc(in_list,steps_in=0,control=None):
102
  else:
103
  step_cont_box[pos]=cnt
104
  cnt+=1
105
- print(step_cont_box)
106
  out_js=""
107
  for iii,j in enumerate(step_cont_box):
108
  print(j)
@@ -110,10 +111,10 @@ def sort_doc(in_list,steps_in=0,control=None):
110
  sen_obj=in_list[i]
111
 
112
  json_out[out_js]=sen_obj
113
- print ("#################")
114
- print (out_js)
115
- print (sen_obj)
116
- print ("#################")
117
 
118
  big_cnt+=1
119
  if big_cnt==key_cnt:
@@ -159,7 +160,7 @@ def link_find(url):
159
  uri3=uri2.split("/")[0]
160
  uri=f'{uri1}//{uri3}'
161
  uri=f'{uri}{url0}'
162
- print(uri)
163
  else:
164
  uri=url0
165
  node1['LINKS'].append(uri)
 
75
  print(f'{ea_dig} :: {list(control_json["control"][ea_dig])[0]}')
76
  step_cont_box.append(int(list(control_json["control"][ea_dig])[0]))
77
  print(step_cont_box)
78
+ cnt=int(step_cont_box[-1])
79
  if not lod:
80
  print("NOT LOD")
81
  for ii in range(steps):
 
103
  else:
104
  step_cont_box[pos]=cnt
105
  cnt+=1
106
+ #print(step_cont_box)
107
  out_js=""
108
  for iii,j in enumerate(step_cont_box):
109
  print(j)
 
111
  sen_obj=in_list[i]
112
 
113
  json_out[out_js]=sen_obj
114
+ #print ("#################")
115
+ #print (out_js)
116
+ #print (sen_obj)
117
+ #print ("#################")
118
 
119
  big_cnt+=1
120
  if big_cnt==key_cnt:
 
160
  uri3=uri2.split("/")[0]
161
  uri=f'{uri1}//{uri3}'
162
  uri=f'{uri}{url0}'
163
+ #print(uri)
164
  else:
165
  uri=url0
166
  node1['LINKS'].append(uri)