Commit d7f74e316428814c4a02f388f1d9d4dacd326c66
- Diff rendering mode:
- inline
- side by side
sweetmaker.py
(2 / 1)
  | |||
8 | 8 | sweet['where'] = where | |
9 | 9 | sweet['how'] = how | |
10 | 10 | 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)}) | ||
12 | 13 | if request.status_code == 200: | |
13 | 14 | return True | |
14 | 15 | else: |