def extract_parameters(handler: tornado.web.RequestHandler): arg1 = handler.get_query_argument("arg1", default="") arg2 = handler.get_query_argument("arg2", default="") arg3 = handler.get_query_argument("arg3", default="") return arg1, arg2, arg3
def extract_parameters(handler: tornado.web.RequestHandler): vertex1 = str(handler.get_query_argument("vertex1", default=None)) vertex2 = str(handler.get_query_argument("vertex2", default=None)) key = str(handler.get_query_argument("key", default=None)) weight = str(handler.get_query_argument("weight", default=None)) return vertex1, vertex2, key, weight