From 8506b42fc4926b45a7f1c02f2380072dfda00a5c Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 13 Dec 2020 18:02:51 -0600 Subject: [PATCH] Updating team name string --- GetGames.cs | 4 ++-- host.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GetGames.cs b/GetGames.cs index 062a625..b3151f1 100644 --- a/GetGames.cs +++ b/GetGames.cs @@ -20,7 +20,7 @@ namespace azfx_calendars_functions_dotnet { try { - HttpResponseMessage teamsResponse = await client.GetAsync("https://statsapi.mlb.com/api/v1/teams?sportId=1&teamId=142"); + HttpResponseMessage teamsResponse = await client.GetAsync("https://statsapi.mlb.com/api/v1/teams?sportId=1"); string teamsResponseBody = await teamsResponse.Content.ReadAsStringAsync(); Teams.Root teams = JsonConvert.DeserializeObject(teamsResponseBody); string[] scopes = new string[] { "https://graph.microsoft.com/.default" }; @@ -41,7 +41,7 @@ namespace azfx_calendars_functions_dotnet string responseBody = await response.Content.ReadAsStringAsync(); Schedule.Root schedule = JsonConvert.DeserializeObject(responseBody); - string siteName = team.name.Replace(" ", String.Empty); + string siteName = teamName.Replace(".", "").Replace(" ", String.Empty); string serverRelativeUrl = string.Format("/sites/{0}", siteName); foreach (Schedule.Date date in schedule.dates) diff --git a/host.json b/host.json index 2685784..5633d7a 100644 --- a/host.json +++ b/host.json @@ -1,4 +1,5 @@ { + "functionTimeout": "23:59:59", "version": "2.0", "logging": { "applicationInsights": {