zooeytsai 2 anos atrás
pai
commit
7de409d19f
1 arquivos alterados com 2 adições e 2 exclusões
  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:
     for i in lst:
         if i[0] == kw:
         if i[0] == kw:
             id = lst.index(i[0])
             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')
         print('執行ranking_day.py')
         time.sleep(randint(180,190))
         time.sleep(randint(180,190))
@@ -38,7 +38,7 @@ class JParams(object):
             try:
             try:
                 os.system('docker container restart tiny9')
                 os.system('docker container restart tiny9')
                 time.sleep(1)
                 time.sleep(1)
-                run_once(9928)
+                run_once(9928,'tiny9')
                 
                 
                 time.sleep(20)
                 time.sleep(20)