Commit 4b168527 authored by Julian Rother's avatar Julian Rother
Browse files

Expose prefix parameter of edit endpoint

parent a5b5a6de
......@@ -268,9 +268,12 @@ tabs = {
@app.route('/edit', methods=['GET', 'POST'])
def edit(prefix="", ignore=[]):
def edit(prefix='', ignore=[]):
# All editable tables are expected to have a 'time_updated' field
if not prefix and 'prefix' in request.args:
prefix = request.args['prefix']
if request.is_json:
changes = request.get_json().items()
Supports Markdown
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