Skip to content

Commit 2c79aed

Browse files
committed
fix: new zzz banenrs not importing
new banners only return when sending real_gacha_type instead of the old gacha_type. Seems to work fine for existing banners so just switched to using the new one.
1 parent 7317a4b commit 2c79aed

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/api/zzz/signals_import/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async fn post_zzz_signals_import(
128128
let mut uid = 0;
129129

130130
for gacha_type in ZzzGachaType::iter().map(|gt| gt.id()) {
131-
let gacha_log: GachaLog = reqwest::get(format!("{url}&gacha_type={gacha_type}&end_id=0"))
131+
let gacha_log: GachaLog = reqwest::get(format!("{url}&real_gacha_type={gacha_type}&end_id=0"))
132132
.await?
133133
.json()
134134
.await?;
@@ -226,7 +226,7 @@ async fn import_signals(
226226
let mut end_id = "0".to_string();
227227

228228
url.query_pairs_mut()
229-
.extend_pairs(&[("gacha_type", gacha_type.id().to_string())])
229+
.extend_pairs(&[("real_gacha_type", gacha_type.id().to_string())])
230230
.finish();
231231

232232
let mut set_all = database::zzz::signals::SetAll::default();

src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ enum ZzzGachaType {
159159
impl ZzzGachaType {
160160
pub fn id(self) -> i32 {
161161
match self {
162-
ZzzGachaType::Standard => 1001,
163-
ZzzGachaType::Special => 2001,
164-
ZzzGachaType::WEngine => 3001,
165-
ZzzGachaType::Bangboo => 5001,
166-
ZzzGachaType::ExclusiveRescreening => 12001,
167-
ZzzGachaType::WEngineReverberation => 13001,
162+
ZzzGachaType::Standard => 1,
163+
ZzzGachaType::Special => 2,
164+
ZzzGachaType::WEngine => 3,
165+
ZzzGachaType::Bangboo => 5,
166+
ZzzGachaType::ExclusiveRescreening => 102,
167+
ZzzGachaType::WEngineReverberation => 103,
168168
}
169169
}
170170
}

0 commit comments

Comments
 (0)