Commit 64f80e25 authored by 张彦钊's avatar 张彦钊

add

parent 0fac821e
......@@ -18,7 +18,7 @@ def position(x,y):
def cpc(x,y):
sum = 0
for i in x:
if int(i['absolute_position']) <= y and i["is_cpc"] == 1:
if (int(i['absolute_position']) <= y) and (i["is_cpc"] == 1):
sum = sum + 1
return sum
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment