Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Add support for a score field for feedback response messages #39

Merged
merged 3 commits into from
Dec 14, 2012

Conversation

dianakhuang
Copy link
Member

No description provided.

@@ -340,6 +340,9 @@ def submit_message(request):
'recipient': recipient,
'message_type': "feedback",
}
if 'score' in body:
message_dict['score'] = body['score']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move this up to the top of the file along with the rest of the "get this value from the request dictionary" stuff?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, would be very good to do some sanity checking on the score to make sure that it is an int. Something like
if 'score' in body: score=body['score']
try: score=int(score), etc...

@VikParuchuri
Copy link
Contributor

High level--have you tested this out and checked if it works?

VikParuchuri added a commit that referenced this pull request Dec 14, 2012
Add support for a score field for feedback response messages
@VikParuchuri VikParuchuri merged commit 9a0218c into master Dec 14, 2012
pmitros pushed a commit that referenced this pull request Jul 12, 2013
Do not double-append the XML path in caps module
cahrens pushed a commit that referenced this pull request Jul 12, 2013
hides latex compiler in settings tab by making previously specific css s...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants