|
@@ -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
|