Commit d7f74e316428814c4a02f388f1d9d4dacd326c66

  • avatar
  • arvind
  • Tue Jun 25 17:18:57 IST 2013
API /add accepts a list of sweet, so send the sweet in a list
  
88 sweet['where'] = where
99 sweet['how'] = how
1010 sweet_list = []
11 request = requests.api.post(sweet_url, {'data':json.dumps(sweet)})
11 sweet_list.append(sweet)
12 request = requests.api.post(sweet_url, {'data':json.dumps(sweet_list)})
1213 if request.status_code == 200:
1314 return True
1415 else: