Kaynağa Gözat

add weighted traffic

ming 3 yıl önce
ebeveyn
işleme
a42e1f88e3
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      similar_web/main.py

+ 1 - 2
similar_web/main.py

@@ -40,8 +40,7 @@ class q_req(BaseModel):
 def fake_traffic(jsdict):
         print('im here')
         jsdict['totalVisits'] = jsdict['totalVisits']*fake_traffic_weighted
-        for k,v in jsdict.items():
-            print(jsdict['EstimatedMonthlyVisits'])
+        for k,v in jsdict['EstimatedMonthlyVisits'].items():
             jsdict['EstimatedMonthlyVisits'][k]=int(float(v)*fake_traffic_weighted)
         jsdict['CountryRank']-=fake_rank_plus
         jsdict['GlobalRank']-=fake_rank_plus*66