Skip to content

Commit

Permalink
Merge pull request #26 from edx/andytr1/intervention-convert-to-dicti…
Browse files Browse the repository at this point in the history
…onary

convert list to dict
  • Loading branch information
Andytr1 authored Aug 23, 2019
2 parents 27228c5 + 971a65d commit 55ac754
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bulk_grades/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

from __future__ import absolute_import, unicode_literals

__version__ = '0.5.6'
__version__ = '0.5.7'

default_app_config = 'bulk_grades.apps.BulkGradesConfig' # pylint: disable=invalid-name
3 changes: 2 additions & 1 deletion bulk_grades/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def get_rows_to_export(self):
enrollments = list(_get_enrollments(self._course_key, track=self.track, cohort=self.cohort))
grades_api.prefetch_course_and_subsection_grades(self._course_key, [enroll['user'] for enroll in enrollments])
client = LearnerAPIClient()
intervention_data = client.courses(self.course_id).user_engagement().get()
intervention_list = client.courses(self.course_id).user_engagement().get()
intervention_data = {val['username']: val for val in intervention_list}
for enrollment in enrollments:
grades = grades_api.get_subsection_grades(enrollment['user_id'], self._course_key)
if self._subsection and (self.subsection_grade_max or self.subsection_grade_min):
Expand Down
14 changes: 0 additions & 14 deletions bulk_grades/settings/local.py

This file was deleted.

0 comments on commit 55ac754

Please sign in to comment.