Kaynağa Gözat

Fix 修复查询SQL拼写错误

YueYunyun 6 ay önce
ebeveyn
işleme
c0d496fba9

+ 1 - 1
SourceCode/TenderCrawler/app/models/collect_data.py

@@ -157,7 +157,7 @@ class CollectData:
             data = result["url"]
             return data
 
-    _one_collect_by_url_query = "ELECT url,keyword,content,data_type,attach_path,status FROM t_collect_data WHERE url = %s  LIMIT 1"
+    _one_collect_by_url_query = "SELECT url,keyword,content,data_type,attach_path,status FROM t_collect_data WHERE url = %s  LIMIT 1"
 
     def fetch_one_collect_by_url(self, url: str):
         with MySQLHelper() as db_helper:

+ 1 - 1
SourceCode/TenderCrawler/app/models/url_setting.py

@@ -24,7 +24,7 @@ class UrlSetting:
         self.is_active = is_active
 
     def __repr__(self):
-        return f"URL配置[ url: {self.url}  type: {self.adapter_type} keywords: {self.keywords}]"
+        return f"URL配置[ URL: {self.url}  TYPE: {self.adapter_type} KEYWORDS: {self.keywords}]"
 
     def to_dict(self):
         return {