(self)
| 27 | |
| 28 | @coroutine |
| 29 | def get(self): |
| 30 | try: |
| 31 | q = self.get_argument("q") |
| 32 | user = self.get_argument("userId") |
| 33 | type = self.get_argument("type") |
| 34 | productId = self.get_argument("productId") |
| 35 | except: |
| 36 | self.send_error(400) |
| 37 | if " " in q: |
| 38 | q = q.replace(" ", "") |
| 39 | self.background_task(user=user, tags=q, type=type, productId=productId) |
| 40 | temp = {} |
| 41 | temp["query"] = q |
| 42 | temp["userId"] = user |
| 43 | temp["status"] = True |
| 44 | temp["productId"] = productId |
| 45 | print( |
| 46 | "{0}, {1}, {2}, {3}".format( |
| 47 | temp["userId"], temp["productId"], temp["query"], temp["status"] |
| 48 | ) |
| 49 | ) |
| 50 | self.write(ujson.dumps(temp)) |
| 51 | |
| 52 | |
| 53 | class StopHandlerinsta(tornado.web.RequestHandler): |
nothing calls this directly
no test coverage detected