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
87db8fcf
Commit
87db8fcf
authored
Aug 23, 2017
by
Jeff LaJoie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds in null check for swap from auto track cohort management command
parent
d16363d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py
+14
-14
No files found.
openedx/core/djangoapps/verified_track_content/management/commands/swap_from_auto_track_cohort_pilot.py
View file @
87db8fcf
...
@@ -179,20 +179,20 @@ class Command(BaseCommand):
...
@@ -179,20 +179,20 @@ class Command(BaseCommand):
verified_course_user_group_partition_group
.
partition_id
,
verified_course_user_group_partition_group
.
partition_id
,
None
None
)
)
if
(
verified_partition_group_access
if
verified_partition_group_access
:
and
verified_course_user_group_partition_group
.
group_id
in
verified_partition_group_access
):
non_verified_track_access_groups
=
(
set
(
verified_partition_group_access
)
-
print
"Queueing XBlock at location: '
%
s' for Verified Content Group update "
%
item
.
location
all_cohorted_track_group_ids
)
set_verified_enrollment_track
=
Tru
e
# If the item has group_access that is not th
e
# verified or audit group IDs then raise an error
# If the item has group_access that is not th
e
# This only needs to be checked for this partition_group onc
e
# verified or audit group IDs then raise an error
if
non_verified_track_access_groups
:
# This only needs to be checked for this partition_group once
errors
.
append
(
non_verified_track_access_groups
=
set
(
verified_partition_group_access
)
-
all_cohorted_track_group_ids
"Non audit/verified cohorted content group set for xblock, location '
%
s' with IDs '
%
s'"
if
non_verified_track_access_groups
:
%
(
item
.
location
,
non_verified_track_access_groups
)
errors
.
append
(
)
"Non audit/verified cohorted content group set for xblock, location '
%
s' with IDs '
%
s'"
if
verified_course_user_group_partition_group
.
group_id
in
verified_partition_group_access
:
%
(
item
.
location
,
non_verified_track_access_groups
)
print
"Queueing XBlock at location: '
%
s' for Verified Content Group update "
%
item
.
location
)
set_verified_enrollment_track
=
True
# Add the enrollment track ids to a group access array
# Add the enrollment track ids to a group access array
enrollment_track_group_access
=
[]
enrollment_track_group_access
=
[]
...
...
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