Permalink
Browse files

Modified question JSON to return requested number

  • Loading branch information...
swvist committed Oct 11, 2011
1 parent 247a506 commit 337f2fd6b2f784a96f8fc2899ee242d90b2c5f34
Showing with 1 addition and 1 deletion.
  1. +1 −1 questiondb.py
View
@@ -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\" : " + "["+

0 comments on commit 337f2fd

Please sign in to comment.