Skip to content
Snippets Groups Projects
Commit e521e0db authored by Michael Terry's avatar Michael Terry
Browse files

Only set due dates on graded content

When a self paced course was published and we were configured to
automatically space out due dates among its sections, we were
accidentally setting due dates on ungraded content. Which limited
access to it.

AA-162
parent b13f207e
No related branches found
No related tags found
No related merge requests found
......@@ -58,9 +58,10 @@ def extract_dates_from_course(course):
items = [section]
while items:
next_item = items.pop()
# TODO: Once studio can manually set relative dates,
# we would need to manually check for them here
date_items.append((next_item.location, {'due': time_per_week * (idx + 1)}))
if next_item.graded:
# TODO: Once studio can manually set relative dates,
# we would need to manually check for them here
date_items.append((next_item.location, {'due': time_per_week * (idx + 1)}))
items.extend(next_item.get_children())
else:
date_items = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment