下記のプログラムでjinja2で表示させたいのですが、削除容量の合計値を表示させたいのですが、できません。やり方を教えていただけるでしょうか。
HTML
1 2</head> 3<body style="padding: 0 10px 20px;"> 4<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable"> 5 <tr> 6 <td valign="top"> 7 <p> 8 下記の不要テーブルの削除が完了しました。<br> 9 <table cellpadding=5 style="width: 100%; font-size: 1.0em; border: 1px solid #ddd; border-spacing: 5; border-collapse: collapse;"> 10 <tr height=24> 11 <th style ="border: 1px solid #ddd; background-color: #C2DD72;">テーブル名</th> 12 <th style ="border: 1px solid #ddd; background-color: #C2DD72;">容量(GB)</th> 13 </tr> 14 {% set total = 0 %} 15 {% for notify in notifies %} 16 <tr height=24 style="background-color: white"> 17 <td style ="border: 1px solid #ddd; text-align: left;">{{ notify['dropcompletelist'] }}</td> 18 <td style ="border: 1px solid #ddd; text-align: left;">{{ notify['dropcompletelist_gbyte'] }}</td> 19 {% set total = total + notify['dropcompletelist_gbyte'] %} 20 {% endfor %} 21 </table> 22 <p> 23 今回の削除対象容量:{{total}}<br> 24 </p> 25 </p><br> 26 </td> 27 </tr> 28</table> 29</body>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。