Skip to content

Commit

Permalink
new user guidance
Browse files Browse the repository at this point in the history
  • Loading branch information
jayliu50 committed Sep 13, 2013
1 parent 1d7e7d7 commit f1f2ab3
Show file tree
Hide file tree
Showing 7 changed files with 2,105 additions and 71 deletions.
7 changes: 7 additions & 0 deletions css/wordexplorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@
clear: both;
}

.orange {
background-color: #F6A354; /* Orange */
}

.bluegreen {
background-color: #83B5A7; /* Green */
}
9 changes: 7 additions & 2 deletions disciple.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def get(self):
disciple = check_user(self)
if disciple:
values = {}
values['quiz_size'] = disciple.quiz_size;
values['quiz_size'] = disciple.quiz_size
values['new_user'] = disciple.new_user
self.response.out.write(json.dumps(values))

def post(self):
Expand All @@ -177,7 +178,11 @@ def post(self):
values = json.loads(self.request.body)

if values:
disciple.quiz_size = int(values['quiz_size'])
if 'quiz_size' in values:
disciple.quiz_size = int(values['quiz_size'])

if 'new_user' in values:
disciple.new_user = values['new_user'] in ['true', 'True']

disciple.put()

Expand Down
Loading

0 comments on commit f1f2ab3

Please sign in to comment.