(self)
| 76 | |
| 77 | class StatusHandlerinsta(tornado.web.RequestHandler): |
| 78 | def get(self): |
| 79 | try: |
| 80 | q = self.get_argument("q") |
| 81 | user = self.get_argument("userId") |
| 82 | productId = self.get_argument("productId") |
| 83 | # tags = self.get_argument("hashtags") |
| 84 | except: |
| 85 | self.send_error(400) |
| 86 | obj = InstaPorcessClass() |
| 87 | result = obj.statusCheck(tags=q, user=user, productId=productId) |
| 88 | temp = {} |
| 89 | temp["query"] = q |
| 90 | temp["userId"] = user |
| 91 | temp["status"] = result |
| 92 | temp["productId"] = productId |
| 93 | print( |
| 94 | "{0}, {1}, {2}, {3}".format( |
| 95 | temp["userId"], temp["productId"], temp["query"], temp["status"] |
| 96 | ) |
| 97 | ) |
| 98 | self.write(ujson.dumps(temp)) |
| 99 | |
| 100 | |
| 101 | # class SenderHandlerinsta(tornado.web.RequestHandler): |
nothing calls this directly
no test coverage detected