Skip to content

Commit

Permalink
Modified question JSON to return requested number
Browse files Browse the repository at this point in the history
  • Loading branch information
nxvipin committed Oct 11, 2011
1 parent 247a506 commit 337f2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questiondb.py
Expand Up @@ -16,7 +16,7 @@ def getQuestion(num):
q = query.filter('questionNumber =',num).get()
if q:
return ("{"+
"\"num\" : " + "\""+str(q.questionNumber)+"\""+","+
"\"num\" : " + "\""+str(num)+"\""+","+
"\"question\" : "+"\""+q.question.replace('\r\n','<br />')+"\""+","+
"\"image\" : "+"\""+q.qimage+"\""+","+
"\"options\" : " + "["+
Expand Down

0 comments on commit 337f2fd

Please sign in to comment.