Commits

Matthew Schinckel  committed 0472738

Use a JSON object for percentage complete

  • Participants
  • Parent commits 3cb7e87

Comments (0)

Files changed (1)

File sms/views.py

     message_set.update_data()
     if message_set.is_complete():
         return HttpResponse(json.dumps(message_set.data.values()))
-    return HttpResponse(str(message_set.percentage_complete))
+    return HttpResponse(json.dumps({"percent_complete": message_set.percentage_complete}))