From a9f94da8ea606663b3ae4889e1f3c07a240ce697 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Fri, 3 Feb 2012 22:52:31 -0500 Subject: [PATCH] Error in conversion from !=None to simpler format --- courseware/module_render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courseware/module_render.py b/courseware/module_render.py index 93becb27fa..3c863684be 100644 --- a/courseware/module_render.py +++ b/courseware/module_render.py @@ -90,7 +90,7 @@ def modx_dispatch(request, module=None, dispatch=None, id=None): ajax_return=instance.handle_ajax(dispatch, request.POST) # Save the state back to the database s.state=instance.get_state() - if not instance.get_score(): + if instance.get_score(): s.grade=instance.get_score()['score'] s.save() # Return whatever the module wanted to return to the client/caller