瀏覽代碼

update db

ming 3 年之前
父節點
當前提交
da4fb9548d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      similar_web/main.py

+ 1 - 1
similar_web/main.py

@@ -138,7 +138,7 @@ async def get_domain_by_keyword(req:kw_req):
         jsdict['totalVisits'] = js2['engagement']['totalVisits']
         jsdict['EstimatedMonthlyVisits']=js2['monthlyVisitsEstimate']
         log_table = db['storage_similar_web']
-        log_table.insert({'SiteName':jsdict['SiteName'],'Description':jsdict['Description'],'GlobalRank':jsdict['GlobalRank']
+        log_table.insert({'SiteName':raw_domain,'Description':jsdict['Description'],'GlobalRank':jsdict['GlobalRank']
         ,'Title':jsdict['Title'],'Category':jsdict['Category'],'CountryRank':jsdict['CountryRank'],'EstimatedMonthlyVisits':jsdict['EstimatedMonthlyVisits']
         ,'totalVisits':jsdict['totalVisits']})