Skip to content

Commit

Permalink
read state as json instead
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Oct 5, 2024
1 parent 44b2819 commit 1f19873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions XLWebServices/Services/PluginData/PluginDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Octokit;
using Tomlyn;
using XLWebServices.Data;
using XLWebServices.Data.Models;

Expand Down Expand Up @@ -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<Dip17State>(await _client.GetStringAsync(stateUrl));
var stateUrl = $"https://raw.githubusercontent.com/{repoOwner}/{repoName}/{sha}/state.json";
var state = JsonSerializer.Deserialize<Dip17State>(await _client.GetStringAsync(stateUrl));

var d17Master = new Dictionary<string, List<PluginManifest>>();

Expand Down
1 change: 0 additions & 1 deletion XLWebServices/XLWebServices.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<PackageReference Include="Sentry.AspNetCore" Version="4.8.0" />
<PackageReference Include="StackExchange.Redis" Version="2.6.90" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Tomlyn" Version="0.15.0" />
<PackageReference Include="YamlDotNet" Version="13.0.2" />
</ItemGroup>

Expand Down

0 comments on commit 1f19873

Please sign in to comment.