Commit c4714ffacc5477a510e6cb67bcc18e2cb9b89c2f

Small change in the /sweets/q API
swtr.py
(3 / 5)
  
187187 reponse.status_code = 400
188188 return response
189189
190 if args['where'] is None:
191 reponse.status_code = 400
192 return response
193
194190 params = {}
195191
196 params['where'] = args.get('where')
197192 if args.get('who'):
198193 params['who'] = args.get('who')
194 if args.get('where'):
195 params['where'] = args.get('where')
199196 if args.get('what'):
200197 params['what'] = args.get('what')
201198 if args.get('how'):
202202
203203 if res.count() < 1:
204204 response.status_code = 404
205 response.data = 'Not Found'
205206 return response
206207
207208 swt_list = []