def post(self): # add.delay(2, 3) downloadlist = json.loads(request.data)["downloadlist"] for task in downloadlist: grab_from_qy.delay(task["lcid"]) return Status(200, 'success', None).result
def get(self, lcid): # add.delay(2, 3) grab_from_qy.delay(lcid) return Status(200, 'success', None).result