summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-15 16:35:41 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-15 16:35:41 -0800
commitf47260eff9e5905e412d33126607fbe0eadcde68 (patch)
tree0a0dfb53ebe98ae1a9e4946bfce02f7a6d473c4e /python/fatcat_web
parent1f0574bb0265fe7e06f5e327a57ce9575cb41d5d (diff)
downloadfatcat-f47260eff9e5905e412d33126607fbe0eadcde68.tar.gz
fatcat-f47260eff9e5905e412d33126607fbe0eadcde68.zip
bunch of pylint cleanup
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py10
1 files changed, 7 insertions, 3 deletions
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/<ident>/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))