Jared 2 年 前
コミット
1bcd3877fa
1 ファイル変更1 行追加3 行削除
  1. 1 3
      monitor/hhh3.py

+ 1 - 3
monitor/hhh3.py

@@ -16,13 +16,11 @@ import redis
 import time
 import fire
 import dataset
-import pymysql
-pymysql.install_as_MySQLdb()
 
 
 db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
 lst=[]
-cursor = db.query('SELECT query FROM seo.hhh_gsc_imp where position >=2.0 and position <=9.0 order by rand();')
+cursor = db.query('SELECT query FROM seo.hhh_gsc_imp where position >=2.5 and position <=8.5 order by rand();')
 
 for c in cursor:
     lst.append([c['query']])