Skip to content

Commit

Permalink
fix: driver race and sprint result in updater
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-cne committed Jul 16, 2024
1 parent 2342fad commit f6467b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions updater/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ pub struct DriverRaceResult {
pub time: Option<String>,
pub milliseconds: Option<String>,
#[serde(rename = "fastestLap")]
pub fastest_lap: u16,
pub rank: u16,
pub fastest_lap: Option<u16>,
pub rank: Option<u16>,
#[serde(rename = "fastestLapTime")]
pub fatest_lap_time: String,
pub fatest_lap_time: Option<String>,
#[serde(rename = "fastestLapSpeed")]
pub fastest_lap_speed: f32,
pub fastest_lap_speed: Option<f32>,
}

#[derive(Deserialize, Debug)]
Expand All @@ -60,11 +60,11 @@ pub struct DriverSprintResult {
pub time: Option<String>,
pub milliseconds: Option<String>,
#[serde(rename = "fastestLap")]
pub fastest_lap: u16,
pub fastest_lap: Option<u16>,
#[serde(rename = "fastestLapTime")]
pub fatest_lap_time: String,
pub fatest_lap_time: Option<String>,
#[serde(rename = "fastestLapSpeed")]
pub fastest_lap_speed: f32,
pub fastest_lap_speed: Option<f32>,
}

#[derive(Deserialize, Debug)]
Expand Down

0 comments on commit f6467b2

Please sign in to comment.