From b1e8a0671205c36fa3561228555fe3c74de03fc4 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 14 Mar 2012 00:26:46 -0700 Subject: need to return the data --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 4a9e3b6..95d38cf 100644 --- a/app.py +++ b/app.py @@ -14,7 +14,7 @@ def index(name='home'): def sig(id='home'): url = 'https://pinkyswear.cloudant.com/pinkyswear/%s' % id r = requests.get(url, auth=('pinkyswear', 'abc123')) - return r.content + return json.loads(r.content)['s'] @post('/s') def sig(id='home'): -- cgit v1.3.1