forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b95b835
commit ca63ee5
Showing
4 changed files
with
164 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
from celery.task import task | ||
# from celery.task import task | ||
from opaque_keys.edx.keys import CourseKey | ||
|
||
from xmodule.modulestore.django import modulestore | ||
|
||
|
||
@task | ||
def update_html_block_mobile_api(course_id): | ||
# @task | ||
def update_html_block_mobile_api(course_id, request): | ||
course_key = CourseKey.from_string(course_id) | ||
|
||
for xblock_html in modulestore().get_items(course_key, qualifiers={'category': 'html'}): | ||
xblock_html.update_info_api() | ||
for xblock_html in modulestore().get_items(course_key, qualifiers={'category': 'problem'}): | ||
try: | ||
xblock_html.update_info_api(request) | ||
except: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters