Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-pipeline
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-analytics-pipeline
Commits
ed9531ca
Commit
ed9531ca
authored
Jan 24, 2018
by
rao-abdul-mannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert user activity output
parent
da41d307
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
edx/analytics/tasks/insights/user_activity.py
+8
-9
No files found.
edx/analytics/tasks/insights/user_activity.py
View file @
ed9531ca
...
...
@@ -39,7 +39,7 @@ class UserActivityTask(OverwriteOutputMixin, WarehouseMixin, EventLogSelectionMi
"""
output_root
=
luigi
.
Parameter
()
output_root
=
None
def
mapper
(
self
,
line
):
value
=
self
.
get_event_and_date_string
(
line
)
...
...
@@ -121,14 +121,13 @@ class UserActivityTask(OverwriteOutputMixin, WarehouseMixin, EventLogSelectionMi
output_file
.
write
(
'
\n
'
)
def
output_path_for_key
(
self
,
key
):
return
get_target_from_url
(
self
.
output_root
)
.
path
# date_string = key
# return url_path_join(
# self.hive_partition_path('user_activity', date_string),
# 'user_activity_{date}'.format(
# date=date_string,
# )
# )
date_string
=
key
return
url_path_join
(
self
.
hive_partition_path
(
'user_activity'
,
date_string
),
'user_activity_{date}'
.
format
(
date
=
date_string
,
)
)
def
run
(
self
):
# Remove the marker file.
...
...
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