Browse Source

cast to int

Kamil Endruszkiewicz 8 years ago
parent
commit
d521912300
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Python/tornado/templates/fortunes.html

+ 1 - 1
frameworks/Python/tornado/templates/fortunes.html

@@ -6,7 +6,7 @@
 <table>
 <table>
 <tr><th>id</th><th>message</th></tr>
 <tr><th>id</th><th>message</th></tr>
 {% for fortune in fortunes %}
 {% for fortune in fortunes %}
-<tr><td>{{ fortune['id'] }}</td><td>{{ fortune['message'] }}</td></tr>
+<tr><td>{{ int(fortune['id']) }}</td><td>{{ fortune['message'] }}</td></tr>
 {% end %}
 {% end %}
 </table>
 </table>
 </body>
 </body>