8000 tested code · viktorasl/firebase-admin-python@6a131c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a131c9

Browse files
committed
tested code
1 parent 3e5e5ad commit 6a131c9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

snippets/dynamic_links/dynamic_links.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ def get_link_stats():
2222
# arrange the list results in a dict
2323
results = dict()
2424
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))
2628

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))
3231
# [END get_link_stats]

0 commit comments

Comments
 (0)
0