def delete(repo_id): Kudo_service = Kudo(g.user) if Kudo_service.delete_kudo_for(repo_id): return json_response({}) else: return json_response({'error': 'kudo not found'}, 404)
def delete(repo_id): print("Got request to delete Kudo") kudo_service = KudoService(g.user) if kudo_service.delete_kudo_for(repo_id): return json_response({}) else: return json_response({'error': 'kudo not found'}, 404)
def update(repo_id): github_repo = GithubRepoSchema().load(json.loads(request.data)) if github_repo.errors: return json_response({'error': github_repo.errors}, 422) kudo_service = Kudo(g.user) if kudo_service.update_kudo_with(repo_id, github_repo): return json_response(github_repo.data) else: return json_response({'error': 'kudo not found'}, 404)
def delete(repo_id): kudo_service = Kudo(g.oidc_token_info['sub']) if kudo_service.delete_kudo_for(repo_id): return json_response({}) else: return json_response({'error': 'kudo not found'}, 404)
def delete(repo_id): kudo_service = Kudo(g.user) if kudo_service.delete_kudo_for(repo_id): return json_response({}) else: return json_response({'error': 'kudo not found'}, 404)