diff src/gui/pages/seasons.cc @ 326:10096c5489e3

anime/db: refactor anime_season_db out
author Paper <paper@paper.us.eu.org>
date Thu, 13 Jun 2024 00:42:00 -0400
parents 78929794e7d8
children b5d6c27c308f
line wrap: on
line diff
--- a/src/gui/pages/seasons.cc	Thu Jun 13 00:36:41 2024 -0400
+++ b/src/gui/pages/seasons.cc	Thu Jun 13 00:42:00 2024 -0400
@@ -1,7 +1,6 @@
 #include "gui/pages/seasons.h"
 
 #include "core/anime_db.h"
-#include "core/anime_season_db.h"
 #include "core/strings.h"
 #include "gui/widgets/anime_button.h"
 #include "gui/translate/anime.h"
@@ -62,7 +61,7 @@
 
 	buttons->clear();
 
-	for (const auto& id : Anime::Season::GetAllAnimeForSeason(season_, year_)) {
+	for (const auto& id : Anime::db.GetAllAnimeForSeason(season_, year_)) {
 		QListWidgetItem* item = new QListWidgetItem;
 		AnimeButton* button = new AnimeButton(this);
 		button->SetAnime(Anime::db.items[id]);