Mercurial > minori
diff src/gui/pages/anime_list.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 | 1b5c04268d6a |
children | b5d6c27c308f |
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc Wed Jun 12 22:48:16 2024 -0400 +++ b/src/gui/pages/anime_list.cc Wed Jun 12 23:03:22 2024 -0400 @@ -143,7 +143,7 @@ case AL_SCORE: return Strings::ToQString(list[index.row()].GetUserPresentableScore()); case AL_TYPE: return Strings::ToQString(Translate::ToString(list[index.row()].GetFormat())); case AL_SEASON: { - std::optional<unsigned int> year = list[index.row()].GetAirDate().GetYear(); + std::optional<unsigned int> year = list[index.row()].GetStartedDate().GetYear(); if (!year) return tr("Unknown Unknown"); return Strings::ToQString(Translate::ToLocalString(list[index.row()].GetSeason()) + " " + @@ -166,7 +166,7 @@ case AL_PROGRESS: return list[index.row()].GetUserProgress(); case AL_SCORE: return list[index.row()].GetUserScore(); case AL_TYPE: return static_cast<int>(list[index.row()].GetFormat()); - case AL_SEASON: return list[index.row()].GetAirDate().GetAsQDate(); + case AL_SEASON: return list[index.row()].GetStartedDate().GetAsQDate(); case AL_AVG_SCORE: return list[index.row()].GetAudienceScore(); case AL_UPDATED: return QVariant::fromValue(list[index.row()].GetUserTimeUpdated()); default: return data(index, Qt::DisplayRole);