Merge branch 'pql'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -25,6 +25,7 @@ class QueryForm(Form):
|
||||
('catalogs', 'Catalogs'),
|
||||
('edges', 'Edges'),
|
||||
('environments', 'Environments'),
|
||||
('pql', 'PQL'),
|
||||
])
|
||||
rawjson = BooleanField('Raw JSON')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user