feat: dump user regions

This commit is contained in:
mokurin000
2025-08-03 20:00:50 +08:00
parent ca81c6495a
commit 90a3fc09df
3 changed files with 9 additions and 0 deletions

View File

@@ -321,6 +321,12 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
dump_cache::<GetUserRatingApiResp>("b50.json", B50)?;
}
#[cfg(feature = "fetchall")]
Commands::ScrapeAllRegionDump {} => {
use crate::{cache::REGIONS, utils::helpers::dump_cache};
dump_cache::<GetUserRatingApiResp>("region.json", REGIONS)?;
}
Commands::Userdata { user_id } => {
let action = async |_| match Sdgb1_50::request::<_, GetUserDataApiResp>(