From f47260eff9e5905e412d33126607fbe0eadcde68 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 15 Nov 2018 16:35:41 -0800 Subject: bunch of pylint cleanup --- python/fatcat_web/routes.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 62096a93..64d5931e 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -50,11 +50,13 @@ def container_create_view(): @app.route('/container/create', methods=['POST']) def container_create(): + raise NotImplementedError params = dict() for k in request.form: if k.startswith('container_'): params[k[10:]] = request.form[k] - edit = api.create_container(params=params) + container = None + edit = api.create_container(container, params=params) return redirect("/container/{}".format(edit.ident)) @app.route('/container/lookup', methods=['GET']) @@ -174,11 +176,13 @@ def release_create_view(): @app.route('/release/create', methods=['POST']) def release_create(): + raise NotImplementedError params = dict() for k in request.form: if k.startswith('release_'): params[k[10:]] = request.form[k] - edit = api.create_release(params=params) + release = None + edit = api.create_release(release, params=params) return redirect("/release/{}".format(edit.ident)) @app.route('/release//history', methods=['GET']) @@ -260,7 +264,7 @@ def work_view(ident): @app.route('/editgroup/current', methods=['GET']) def editgroup_current(): - raise NotImplemented() + raise NotImplementedError #eg = api.get_or_create_editgroup() #return redirect('/editgroup/{}'.format(eg.id)) -- cgit v1.2.3