File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,10 @@ def get_link_stats():
22
22
# arrange the list results in a dict
23
23
results = dict ()
24
24
for stat in stats .event_stats :
25
- results [(stat .platform , stat .event_type )] = stat .count
25
+ results [(stat .platform , stat .event )] = stat .count
26
+ andoid_click = results .get ((dynamic_links .PLATFORM_ANDROID ,
27
+ dynamic_links .EVENT_TYPE_CLICK ))
26
28
27
- ios_first_installs = results .get ([(dynamic_links .PLATFORM_IOS ,
28
- dynamic_links .EVENT_TYPE_APP_FIRST_OPEN )])
29
-
30
- if ios_first_installs :
31
- print ('There were {} first install on IOS in the last 7 days' .format (ios_first_installs ))
29
+ if andoid_click :
30
+ print ('There were {} clicks on ANDROID in the last 7 days' .format (andoid_click ))
32
31
# [END get_link_stats]
You can’t perform that action at this time.
0 commit comments