rogerxavier commited on
Commit
134508d
·
verified ·
1 Parent(s): 0353efc

Update getNode.py

Browse files
Files changed (1) hide show
  1. getNode.py +1 -3
getNode.py CHANGED
@@ -16,11 +16,9 @@ def getNode(background_tasks: BackgroundTasks)->str:
16
  # 直接用现成的认为可用然后直接返回,之后再删不可用的
17
  randomSubscribeUrl= getRandomSubscribeUrl(SubscribeUrlList)
18
  NodeList = dump_configs(randomSubscribeUrl)
19
- for i in NodeList:
20
- print("nodelist包含"+i)
21
  NodeStr = RandomNode(NodeList)
22
 
23
- background_tasks.add_task(delete_invalid_url_in_txt, router.fileName)
24
  return NodeStr
25
 
26
  def RandomNode(NodeList:list)->str:
 
16
  # 直接用现成的认为可用然后直接返回,之后再删不可用的
17
  randomSubscribeUrl= getRandomSubscribeUrl(SubscribeUrlList)
18
  NodeList = dump_configs(randomSubscribeUrl)
 
 
19
  NodeStr = RandomNode(NodeList)
20
 
21
+ #background_tasks.add_task(delete_invalid_url_in_txt, router.fileName)
22
  return NodeStr
23
 
24
  def RandomNode(NodeList:list)->str: