diff src/core/anime_db.cc @ 413:192da585a0a8 default tip

*: fix formatting the clang-format file was broken andjust using LLVM defaults. now it's fixed and is more in line with what I actually prefer my code to look like -- esp. with regards to tabulators
author Paper <paper@tflc.us>
date Sat, 25 Jul 2026 14:54:32 -0400
parents a72d6d7b3568
children
line wrap: on
line diff
--- a/src/core/anime_db.cc	Sat Jul 25 14:33:03 2026 -0400
+++ b/src/core/anime_db.cc	Sat Jul 25 14:54:32 2026 -0400
@@ -64,7 +64,7 @@
 	for (const auto &[id, anime] : items)
 		if (anime.IsInUserList())
 			total += anime.GetDuration() * anime.GetUserProgress() +
-			         anime.GetEpisodes() * anime.GetDuration() * anime.GetUserRewatchedTimes();
+					 anime.GetEpisodes() * anime.GetDuration() * anime.GetUserRewatchedTimes();
 
 	return total;
 }
@@ -277,7 +277,7 @@
 	anime.SetTitleSynonyms(JSON::GetArray<std::vector<std::string>>(json, "/synonyms"_json_pointer, {}));
 	anime.SetEpisodes(JSON::GetNumber(json, "/episodes"_json_pointer, 0));
 	anime.SetAiringStatus(
-	    Translate::ToSeriesStatus(JSON::GetString<std::string>(json, "/airing_status"_json_pointer, "")));
+		Translate::ToSeriesStatus(JSON::GetString<std::string>(json, "/airing_status"_json_pointer, "")));
 	anime.SetStartedDate(Date(JSON::GetValue(json, "/started_date"_json_pointer)));
 	anime.SetCompletedDate(Date(JSON::GetValue(json, "/completed_date"_json_pointer)));
 	anime.SetGenres(JSON::GetArray<std::vector<std::string>>(json, "/genres"_json_pointer, {}));