Commit 424954a0 authored by 高雅喆's avatar 高雅喆

return one day stat

parent 71498ed7
...@@ -62,8 +62,9 @@ class GrayStat(object): ...@@ -62,8 +62,9 @@ class GrayStat(object):
if __name__ == '__main__': if __name__ == '__main__':
date_list = get_between_day('2018-08-20','2018-08-29') # date_list = get_between_day('2018-08-20','2018-08-29')
for my_date in date_list: # for my_date in date_list:
print("开始获取ffm中的灰度非灰度比例") print("开始获取ffm中的灰度非灰度比例")
start = time.time() start = time.time()
#1.ffm中的灰度非灰度(ios和安卓一样): #1.ffm中的灰度非灰度(ios和安卓一样):
...@@ -75,7 +76,7 @@ if __name__ == '__main__': ...@@ -75,7 +76,7 @@ if __name__ == '__main__':
grays = ['6','8'] grays = ['6','8']
for platform in platforms: for platform in platforms:
for gray in grays: for gray in grays:
g_class = GrayStat('diary',gray,platform,my_date) g_class = GrayStat('diary',gray,platform)
uid_count = g_class.get_uid_count() uid_count = g_class.get_uid_count()
uid_clk_times = g_class.get_uid_clk_times() uid_clk_times = g_class.get_uid_clk_times()
uid_imp_times = g_class.get_uid_imp_times() uid_imp_times = g_class.get_uid_imp_times()
...@@ -121,7 +122,7 @@ if __name__ == '__main__': ...@@ -121,7 +122,7 @@ if __name__ == '__main__':
else: else:
grays = ['0|1|2|6|8','^01268'] grays = ['0|1|2|6|8','^01268']
for gray in grays: for gray in grays:
g_class = GrayStat('diary',gray,platform,my_date) g_class = GrayStat('diary',gray,platform)
uid_count = g_class.get_uid_count() uid_count = g_class.get_uid_count()
uid_clk_times = g_class.get_uid_clk_times() uid_clk_times = g_class.get_uid_clk_times()
uid_imp_times = g_class.get_uid_imp_times() uid_imp_times = g_class.get_uid_imp_times()
......
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