def _q_lookup(request, proj_id): if request.method == "POST": return new(request, proj_id) elif request.method == "DELETE": return remove(request, proj_id) elif request.method == "GET": return has_watched(request, proj_id) else: return error_message("bad request")
def _q_lookup(request, proj_id): if request.method == "POST": return fetch(request, proj_id) return error_message("bad request")