zooeytsai 2 年之前
父節點
當前提交
7de409d19f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SEO/run_ranking_day.py

+ 2 - 2
SEO/run_ranking_day.py

@@ -22,7 +22,7 @@ def run_once(pport, dockername):
     for i in lst:
         if i[0] == kw:
             id = lst.index(i[0])
-            intval = os.system(f'python3 ranking_day.py get --kw="{lst[id+1]}" --domain="{i[1]}" --port="{str(pport)}"')
+            intval = os.system(f'python3 ranking_day.py get --kw="{lst[id+1]}" --domain="{i[id+1]}" --port="{str(pport)}"')
     
         print('執行ranking_day.py')
         time.sleep(randint(180,190))
@@ -38,7 +38,7 @@ class JParams(object):
             try:
                 os.system('docker container restart tiny9')
                 time.sleep(1)
-                run_once(9928)
+                run_once(9928,'tiny9')
                 
                 time.sleep(20)