lierqiang 2 年之前
父節點
當前提交
f602f4d07c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/conf_task.py

+ 1 - 1
server/conf_task.py

@@ -28,7 +28,7 @@ def addSpiderLink():
         spider_link = data['spider_link']
         spider_link = data['spider_link']
         task_id = data['task_id']
         task_id = data['task_id']
 
 
-        sql = f'select * from crawler_author_map where spider_link={spider_link}'
+        sql = f'select * from crawler_author_map where spider_link="{spider_link}"'
         result = mysql_con.get_values(sql)
         result = mysql_con.get_values(sql)
         now_time = int(time.time())
         now_time = int(time.time())
         if result:
         if result: