0
我正在使用Google App Engine webapp2框架构建一个简单的网站来统计和收集所有提交的出价。我已经从数据库中读取了每个出价的“Book”。如何为Google App Engine的不同数据值创建不同的表格
目前,对于所有提交的出价,只能显示一个表格。我如何使用jinja2为不同的IssueName创建不同的表格。
例如,如果IssueName = Bond1,则表1收集bond1的所有出价;如果IssueName = Bond2,则表2收集Bond2的所有投标
<table class="table table-striped">
<thead>
<tr>
<th>IssueName</th>
<th>RM Name</th>
<th>Customer</th>
<th>Price</th>
<th>Notional</th>
<th>Bid Time</th>
</tr>
</thead>
{% for bid in Book %}
<tbody>
<tr>
<th>{{ bid.IssueName }}</th>
<th>{{ bid.RMName }}</th>
<th>{{ bid.CustomerName }}</th>
<th>{{ bid.BidPrice }}</th>
<th>{{ bid.Notional }}</th>
<th>{{ bid.BidTime }}</th>
</tr>
</tbody>
{% endfor %}
</table>