Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Cargo.toml
#	index.html
  • Loading branch information
SteveCookTU committed Sep 3, 2024
2 parents eaaf0ab + c2b5c3d commit c5ee955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/cfb/outlets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ use lazy_static::lazy_static;
lazy_static! {
pub static ref OUTLETS: Vec<String> = vec![
"ABC".to_string(),
"ACCN".to_string(),
"BTN".to_string(),
"ACC NETWORK".to_string(),
"BIG10".to_string(),
"CBS".to_string(),
"CBSSN".to_string(),
"ESPN".to_string(),
"ESPN2".to_string(),
"ESPNU".to_string(),
"NBC".to_string(),
"NFLN".to_string(),
"PAC12".to_string(),
"FOX".to_string(),
"FS1".to_string(),
"SECN".to_string()
"SEC NETWORK".to_string()
];
}

Expand Down
3 changes: 1 addition & 2 deletions src/components/mlb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn load_results(params: RequestParams<u16>) -> Vec<GameResult> {
NaiveDate::from_str(&params.date).unwrap_or_else(|_| Local::now().date_naive());
let id = params.team;
let mut results = vec![];
if let Ok(response) = reqwest::get(format!("https://statsapi.mlb.com/api/v1/schedule?language=en&sportId=1&date={}&hydrate=game,broadcasts", params.date)).await {
let response = reqwest::get(format!("https://statsapi.mlb.com/api/v1/schedule?language=en&sportId=1&date={}&hydrate=game,broadcasts", params.date)).await.unwrap();
let schedule = response.json::<Schedule>().await.unwrap_or_default();
for date in schedule.dates {
for schedule_game in date.games {
Expand Down Expand Up @@ -72,7 +72,6 @@ async fn load_results(params: RequestParams<u16>) -> Vec<GameResult> {
).await;
}
}
}
results
}

Expand Down

0 comments on commit c5ee955

Please sign in to comment.