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

Expose prefix parameter of edit endpoint

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