Skip to content
Snippets Groups Projects
Commit 4b168527 authored by Julian Rother's avatar Julian Rother
Browse files

Expose prefix parameter of edit endpoint

parent a5b5a6de
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment