|
@@ -283,15 +283,17 @@ time.sleep(5)
|
|
|
related=''
|
|
|
|
|
|
#cursor=db.query('SELECT cust,plan,prefix,domain,kw,positive FROM public.seo_jobs order by random() limit 1')
|
|
|
-cursor=db.query("SELECT cust,plan,prefix,domain,kw,positive FROM public.seo_jobs where cust='啟翔' order by random() limit 1")
|
|
|
+#cursor=db.query("SELECT cust,plan,prefix,domain,kw,positive FROM public.seo_jobs where cust='啟翔' order by random() limit 1")
|
|
|
+cursor=db.query("SELECT cust,kw,url FROM public.seo_doublejob where cust='啟翔' order by random() limit 1")
|
|
|
|
|
|
for c in cursor:
|
|
|
cust=c['cust']
|
|
|
kw=c['kw']
|
|
|
- plan=c['plan']
|
|
|
- prefix=c['prefix']
|
|
|
- domain=eval(c['domain'])
|
|
|
- positive=eval(c['positive'])
|
|
|
+ plan=''
|
|
|
+ prefix=''
|
|
|
+ domain=[c['url']]
|
|
|
+ positive=['']
|
|
|
+# positive=eval(c['positive'])
|
|
|
break
|
|
|
r=9999
|
|
|
|