Merge branch 'pql'

This commit is contained in:
Raphaël Pinson
2016-06-21 09:46:02 +02:00
3 changed files with 5 additions and 2 deletions

View File

@@ -723,7 +723,9 @@ def query(env):
form = QueryForm(csrf_enabled=False)
if form.validate_on_submit():
if form.query.data[0] == '[':
if form.endpoints.data == 'pql':
query = form.query.data
elif form.query.data[0] == '[':
query = form.query.data
else:
query = '[{0}]'.format(form.query.data)