diff src/gui/pages/search.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 91ac90a34003
children b5d6c27c308f
line wrap: on
line diff
--- a/src/gui/pages/search.cc	Wed Jun 12 22:48:16 2024 -0400
+++ b/src/gui/pages/search.cc	Wed Jun 12 23:03:22 2024 -0400
@@ -128,7 +128,7 @@
 				case SR_SCORE: return QString::number(anime.GetAudienceScore()) + "%";
 				case SR_SEASON:
 					return Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) + " " +
-					       QString::number(anime.GetAirDate().GetYear().value_or(2000));
+					       QString::number(anime.GetStartedDate().GetYear().value_or(2000));
 				default: return {};
 			}
 			break;
@@ -136,7 +136,7 @@
 			switch (index.column()) {
 				case SR_SCORE: return anime.GetAudienceScore();
 				case SR_EPISODES: return anime.GetEpisodes();
-				case SR_SEASON: return anime.GetAirDate().GetAsQDate();
+				case SR_SEASON: return anime.GetStartedDate().GetAsQDate();
 				/* We have to use this to work around some stupid
 				 * "conversion ambiguous" error on Linux
 				 */