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
c5809b95
Commit
c5809b95
authored
Jun 27, 2016
by
Juan Camilo Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indentation fix to avoid a too long line.
parent
7a093171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
common/lib/xmodule/xmodule/html_module.py
+4
-1
No files found.
common/lib/xmodule/xmodule/html_module.py
View file @
c5809b95
...
...
@@ -440,7 +440,10 @@ class CourseInfoModule(CourseInfoFields, HtmlModuleMixin):
return
self
.
data
else
:
course_updates
=
[
item
for
item
in
self
.
items
if
item
.
get
(
'status'
)
==
self
.
STATUS_VISIBLE
]
course_updates
.
sort
(
key
=
lambda
item
:
(
CourseInfoModule
.
safe_parse_date
(
item
[
'date'
]),
item
[
'id'
]),
reverse
=
True
)
course_updates
.
sort
(
key
=
lambda
item
:
(
CourseInfoModule
.
safe_parse_date
(
item
[
'date'
]),
item
[
'id'
]),
reverse
=
True
)
context
=
{
'visible_updates'
:
course_updates
[:
3
],
'hidden_updates'
:
course_updates
[
3
:],
...
...
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