From 41ff1cbdbc63fd17100c599bb40a824c43c0e945 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 14 Oct 2019 16:15:59 +0200 Subject: [PATCH] Fix error in reg api - quick fix --- openedx/core/djangoapps/appsembler/api/v1/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/appsembler/api/v1/views.py b/openedx/core/djangoapps/appsembler/api/v1/views.py index 84b8c95fd5e1..e3a8409893c3 100644 --- a/openedx/core/djangoapps/appsembler/api/v1/views.py +++ b/openedx/core/djangoapps/appsembler/api/v1/views.py @@ -236,7 +236,7 @@ def _normalize_bool_param(self, unnormalized): normalized = str(unnormalized).lower() if normalized not in ['false', 'true']: raise ValidationError('invalid value {unnormalized} for boolean type'.format(unnormalized)) - return True if value == 'true' else False + return True if normalized == 'true' else False class CourseViewSet(TahoeAuthMixin, viewsets.ReadOnlyModelViewSet):