Commits

Kirill Simonov committed bfaccb8

HTSQL output: fixed fetching data in `/:jsonex` layout, increase the height.

Comments (0)

Files changed (2)

doc/extensions/htsqldoc.py

     if content_type == 'application/json':
         data = loads(content)
         if isinstance(data, dict):
-            data = [meta['title'] for meta in data['meta']] + data['data']
+            data = [[meta['title'] for meta in data['meta']]] + data['data']
         is_cut = False
         if cut and len(data) > cut+1:
             data = data[:cut+1]

doc/static/htsqldoc.css

 }
 
 div.htsql-output {
-  max-height: 10em;
+  max-height: 11em;
   overflow: auto;
 }