Commit d564563e authored by Ryan Herbert's avatar Ryan Herbert
Browse files

file.py more hackiness for form action

we don't have access to files yet so we'll just assume we're adding for
the tie being.
parent 99b417cf
Pipeline #19930 passed with stages
in 40 seconds
...@@ -212,11 +212,7 @@ def submit(): ...@@ -212,11 +212,7 @@ def submit():
data['errors'] = errors data['errors'] = errors
if (f["id"] != ""): data['action'] = 'add'
action = 'edit'
else:
action = 'add'
data['action'] = action
if len(errors) > 0: if len(errors) > 0:
return form_response(data) return form_response(data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment