Mercurial > minori
diff src/core/anime_season_db.cc @ 324:5d3c9b31aa6e
anime: add completed date member
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 23:03:22 -0400 |
parents | dd211ff68b36 |
children |
line wrap: on
line diff
--- a/src/core/anime_season_db.cc Wed Jun 12 22:48:16 2024 -0400 +++ b/src/core/anime_season_db.cc Wed Jun 12 23:03:22 2024 -0400 @@ -9,7 +9,7 @@ std::vector<int> ret; for (const auto& [id, anime] : db.items) { - std::optional<Date::Year> anime_year = anime.GetAirDate().GetYear(); + std::optional<Date::Year> anime_year = anime.GetStartedDate().GetYear(); if (anime.GetSeason() == season && anime_year && anime_year.value() == year) ret.push_back(id); }