added entrycount to my logs

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2023-12-28 21:59:58 +01:00
parent 87775bead7
commit dc3b264479
Signed by: sidski
GPG key ID: D2BBDF3EDE6BA9A6
2 changed files with 14 additions and 13 deletions

View file

@ -29,19 +29,20 @@ function getEmojiStars(rating:any) {
<p>👀 Star Wars: The Clone Wars S02</p>
<p>👀 JUJUTSU KAISEN S02</p>
{sortedYears.map(year => (
<section>
<div class="text-xl font-semibold mb-2">{year} - Finished</div>
<ul>
<section>
<div class="flex items-center gap-2 text-xl font-semibold mb-2">{year} - Finished <p class="text-xs">({tvByYear[year].length} entries)</p></div>
<ul>
{
watched.map((tv) => (
<div class="flex justify-between mb-2 break-words gap-2 borderbottom">
<p class="text-s">{tv.title}</p>
<p>{getEmojiStars(tv.my_rating)}</p>
</div>
tvByYear[year].map(tv => (
<li class="flex mb-2 break-words gap-2 borderbottom">
<p class="text-s w-1/3">{tv.title}</p>
<p class="w-1/3 text-center">{tv.type}</p>
<p class="w-1/3 text-end">{getEmojiStars(tv.my_rating)}</p>
</li>
))
}
</ul>
</section>
))}
</section>
))}
</main>
</SectionContainer>