Commit 8bd5d86360e87dc18e9d79caa982594eff688459

Fix correct way of handling query string arguments
swtr.py
(11 / 1)
  
191191 reponse.status_code = 400
192192 return response
193193
194 res = g.collection.find(args)
194 params = {}
195
196 params['where'] = args.get('where')
197 if args.get('who'):
198 params['who'] = args.get('who')
199 if args.get('what'):
200 params['what'] = args.get('what')
201 if args.get('how'):
202 params['how'] = args.get('how')
203
204 res = g.collection.find(params)
195205
196206 if res.count() < 1:
197207 response.status_code = 404