From 952ce97d8978073bb72e15f641e8cccf70887989 Mon Sep 17 00:00:00 2001 From: Arvind Khadri Date: Wed, 29 May 2013 19:13:52 +0530 Subject: [PATCH] Fixing API --- swtr.py | 1 + templates/show_entries.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/swtr.py b/swtr.py index 79314c4..c9803fb 100644 --- a/swtr.py +++ b/swtr.py @@ -66,6 +66,7 @@ def add_entry(): response.headers['Access-Control-Allow-Origin'] = '*' data = {} data_list = [] + print request.form['data'] for i in json.loads(request.form['data']): id = g.collection.insert(i) data['permalink'] = app.config['URL']+'/posts/'+str(ObjectId(id)) diff --git a/templates/show_entries.html b/templates/show_entries.html index c7f5d4c..e548220 100644 --- a/templates/show_entries.html +++ b/templates/show_entries.html @@ -15,8 +15,8 @@ {% endif %}