Skip to content

Commit

Permalink
feat(tiers): add fetch_unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Sep 10, 2024
1 parent 520f44c commit 6f3a9f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tiers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub struct Badge {
pub struct AllPlayerInfo {
players: Vec<PlayerInfo>,
unknown: Vec<Uuid>,
fetch_unknown: bool,
}

// === Routes ===
Expand Down Expand Up @@ -100,7 +101,11 @@ pub async fn get_all() -> RouteResponse<Json<AllPlayerInfo>> {
}
}

Ok(Json(AllPlayerInfo { players, unknown }))
Ok(Json(AllPlayerInfo {
players,
unknown,
fetch_unknown: true,
}))
}

/// (technically) no-op. forwards the request straight to mctiers
Expand Down

0 comments on commit 6f3a9f6

Please sign in to comment.