ソースを参照

remove data table from trend chart web endpoint

Daniel Sheffield 1 年間 前
コミット
203c1e31d9
2 ファイル変更2 行追加9 行削除
  1. 2 3
      app/rest/form.tpl
  2. 0 6
      app/rest/pyapi.py

+ 2 - 3
app/rest/form.tpl

@@ -5,15 +5,14 @@
             <tr>
 {{! ''.join( header )}}
             </tr>
+        </thead>
+        <tbody>     
             <tr>
 {{! ''.join( _include )}}
             </tr>
             <tr>
 {{! ''.join( _exclude )}}
             </tr>
-        </thead>
-        <tbody>       
-{{! ''.join( data )}}
         </tbody>
     </table>
     </div>

+ 0 - 6
app/rest/pyapi.py

@@ -157,12 +157,6 @@ def get_form(action, method, filter_data, data):
                 ]) - filter_data[k][1])
             )), key=lambda x: x["display"] if "display" in x else x["value"]), # exclude
         ) for k in keys ],
-        data=[ template(
-            'app/rest/data-item',
-            product=row['product'],
-            category=row['category'],
-            group=row['group'],
-        ) for _, row in group.iterrows() ],
         tags=sorted(map(lambda x: {
                 "selected": x[0],
                 "value": x[1],