Fix bugs with own struct

This commit is contained in:
daru
2022-04-16 18:38:44 +02:00
parent ffc7d5624d
commit b021e418e9
3 changed files with 23 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
{% package main %}
{% func Index(season *SeasonJikan) %}
{% func Index(animes []Anime) %}
{% collapsespace %}
<!DOCTYPE html>
<html lang="en">
@@ -23,16 +23,16 @@ body { background-color: #1a1a1a; color: #fff; }
<table>
<tr>
<td><strong>Airing 📺</strong></td>
<td>{%d season.Pagination.Items.Total %}</td>
<td>{%d len(animes) %}</td>
</tr>
</table>
</br>
<table>
{% for _, anime := range season.Data %}
{% for _, anime := range animes %}
<tr>
<td><strong>{%s anime.Title %}</strong></td>
<td>{%dl anime.MalID %}</td>
<td>{%s anime.Aired.String %}</td>
<td><strong>{%s anime.Data.Title %}</strong></td>
<td>{%dl anime.Anime %}</td>
<td>{%d anime.Data.Episodes %}</td>
</tr>
{% endfor %}
</table>