From fac33c275d5325e125afa50336999f1d17940739 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Thu, 12 Sep 2019 18:47:48 +0500 Subject: [PATCH] BOM-472 Fixing python3 --- lms/djangoapps/courseware/tests/test_views.py | 2 +- lms/templates/courseware/progress_graph.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/tests/test_views.py b/lms/djangoapps/courseware/tests/test_views.py index 2139ad6ede..4eec715f49 100644 --- a/lms/djangoapps/courseware/tests/test_views.py +++ b/lms/djangoapps/courseware/tests/test_views.py @@ -2025,7 +2025,7 @@ class ProgressPageShowCorrectnessTests(ProgressPageBaseTests): resp = self._get_progress_page() # Test that no problem scores are present - self.assertIn('No problem scores in this section', resp.content) + self.assertIn('No problem scores in this section', resp.content.decode('utf-8')) @ddt.data( ('', None, False, True), diff --git a/lms/templates/courseware/progress_graph.js b/lms/templates/courseware/progress_graph.js index e71c66e9a9..f4d2616265 100644 --- a/lms/templates/courseware/progress_graph.js +++ b/lms/templates/courseware/progress_graph.js @@ -96,7 +96,7 @@ $(function () { ## ----------------------------- Grade overview bar ------------------------- ## tickIndex += sectionSpacer - series = categories.values() + series = list(categories.values()) overviewBarX = tickIndex extraColorIndex = len(categories) #Keeping track of the next color to use for categories not in categories[]