Mercurial > minori
diff src/core/date.cc @ 175:9b10175be389
dep/json: update to v3.11.3
anime/db: save anime list to database, very much untested and likely won't work as intended
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 30 Nov 2023 13:52:26 -0500 |
parents | f88eda79c60a |
children | 9613d72b097e |
line wrap: on
line diff
--- a/src/core/date.cc Wed Nov 29 13:53:56 2023 -0500 +++ b/src/core/date.cc Thu Nov 30 13:52:26 2023 -0500 @@ -30,6 +30,9 @@ } Date::Date(const nlohmann::json& json) { + /* NOTE: this constructor is made for use with + AniList FussyDate-style JSON. In the future, some other + methods may be parsed and whatnot if necessary. */ if (json.contains("year") && json.at("year").is_number()) SetYear(json.at("year").get<unsigned int>()); if (json.contains("month") && json.at("month").is_number())