Skip to content

Commit

Permalink
chore: other feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz committed Sep 11, 2024
1 parent 91ac3ab commit 4a83a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions enterprise_access/apps/content_assignments/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,8 @@ def nudge_assignments(assignments, assignment_configuration_uuid, days_before_co
enterprise_catalog_uuid,
[assignment],
)
print('content_metadata_for_assignments?!?!', content_metadata_for_assignments)
content_metadata = content_metadata_for_assignments.get(assignment.content_key, {})
print('content_metadata?!?!', content_metadata)
normalized_metadata = get_normalized_metadata_for_assignment(assignment, content_metadata)
print('normalized_metadata?!?!', normalized_metadata)

start_date = normalized_metadata.get('start_date')
course_type = content_metadata.get('course_type')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def get_content_metadata_for_assignments(enterprise_catalog_uuid, assignments):
such metadata is related to the given `enterprise_catalog_uuid`.
Note that the `content_keys` of the provided assignments may be
either course run keys or course keys.
either course run keys or course keys. Regardless of the type of key,
the content metadata API will return the metadata at the course-level.
Returns:
A dict mapping every content key of the provided assignments
Expand Down

0 comments on commit 4a83a6c

Please sign in to comment.