Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
53544a70
Unverified
Commit
53544a70
authored
Nov 15, 2017
by
Gabe Mulley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always include num_courses in the event
parent
6f20cd5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
openedx/core/djangoapps/schedules/tasks.py
+1
-3
No files found.
openedx/core/djangoapps/schedules/tasks.py
View file @
53544a70
...
...
@@ -207,13 +207,11 @@ def _track_message_sent(site, user, msg):
'send_uuid'
:
msg
.
send_uuid
,
}
course_ids
=
msg
.
context
.
get
(
'course_ids'
,
[])
properties
[
'num_courses'
]
=
len
(
course_ids
)
if
len
(
course_ids
)
>
0
:
properties
[
'course_ids'
]
=
course_ids
[:
10
]
properties
[
'primary_course_id'
]
=
course_ids
[
0
]
if
len
(
course_ids
)
>
1
:
properties
[
'num_courses'
]
=
len
(
course_ids
)
analytics
.
track
(
user_id
=
user
.
id
,
event
=
'edx.bi.email.sent'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment