Explorar o código

add weighted traffic

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
e9eea488ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      similar_web/main.py

+ 1 - 1
similar_web/main.py

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