From 1f198735c47b361d477943a1a5c28e2526bc396a Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 5 Oct 2024 15:44:11 +0200 Subject: [PATCH] read state as json instead --- XLWebServices/Services/PluginData/PluginDataService.cs | 5 ++--- XLWebServices/XLWebServices.csproj | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/XLWebServices/Services/PluginData/PluginDataService.cs b/XLWebServices/Services/PluginData/PluginDataService.cs index d91fdaf..37147bc 100644 --- a/XLWebServices/Services/PluginData/PluginDataService.cs +++ b/XLWebServices/Services/PluginData/PluginDataService.cs @@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Octokit; -using Tomlyn; using XLWebServices.Data; using XLWebServices.Data.Models; @@ -164,8 +163,8 @@ public async Task PostProcessD17Masters() if (bannedPlugins == null) throw new Exception("Failed to load banned plugins"); - var stateUrl = $"https://raw.githubusercontent.com/{repoOwner}/{repoName}/{sha}/State.toml"; - var state = Toml.ToModel(await _client.GetStringAsync(stateUrl)); + var stateUrl = $"https://raw.githubusercontent.com/{repoOwner}/{repoName}/{sha}/state.json"; + var state = JsonSerializer.Deserialize(await _client.GetStringAsync(stateUrl)); var d17Master = new Dictionary>(); diff --git a/XLWebServices/XLWebServices.csproj b/XLWebServices/XLWebServices.csproj index 291d910..dae0a05 100644 --- a/XLWebServices/XLWebServices.csproj +++ b/XLWebServices/XLWebServices.csproj @@ -20,7 +20,6 @@ -