Commit c4714ffacc5477a510e6cb67bcc18e2cb9b89c2f
- Diff rendering mode:
- inline
- side by side
swtr.py
(3 / 5)
  | |||
187 | 187 | reponse.status_code = 400 | |
188 | 188 | return response | |
189 | 189 | ||
190 | if args['where'] is None: | ||
191 | reponse.status_code = 400 | ||
192 | return response | ||
193 | |||
194 | 190 | params = {} | |
195 | 191 | ||
196 | params['where'] = args.get('where') | ||
197 | 192 | if args.get('who'): | |
198 | 193 | params['who'] = args.get('who') | |
194 | if args.get('where'): | ||
195 | params['where'] = args.get('where') | ||
199 | 196 | if args.get('what'): | |
200 | 197 | params['what'] = args.get('what') | |
201 | 198 | if args.get('how'): | |
… | … | ||
202 | 202 | ||
203 | 203 | if res.count() < 1: | |
204 | 204 | response.status_code = 404 | |
205 | response.data = 'Not Found' | ||
205 | 206 | return response | |
206 | 207 | ||
207 | 208 | swt_list = [] |