Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
-cleanup
Browse files Browse the repository at this point in the history
- rank 0 if no current rank
  • Loading branch information
Soneliem committed Aug 14, 2021
1 parent 08d507d commit 42c915d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
4 changes: 0 additions & 4 deletions WAIUA.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WAIUA", "WAIUA\WAIUA.csproj", "{AF25112C-91B9-4735-AE9B-C7CE963A30A4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{13E3F6B6-D516-4741-9317-407D36E7B34F}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
WAIUA\Views\Account.xaml.cs = WAIUA\Views\Account.xaml.cs
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
13 changes: 8 additions & 5 deletions WAIUA/Commands/APIConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public static class APIConnection
public static string[] PGList { get; set; } = new string[10];
public static string[] PPGList { get; set; } = new string[10];
public static string[] PPPGList { get; set; } = new string[10];
//public static string processName { get; set; };
//public static string processId { get; set; };

public static void Login(CookieContainer cookie, string username, string password)
{
try
Expand Down Expand Up @@ -192,7 +189,6 @@ public static void LocalLogin()

public static void LocalRegion()
{
GetLatestVersion();
RestClient client = new RestClient(new Uri($"https://127.0.0.1:{Port}/product-session/v1/external-sessions"));
RestRequest request = new RestRequest(Method.GET);
client.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
Expand Down Expand Up @@ -461,7 +457,14 @@ public static void GetPlayerHistory(string puuid, int playerno)
string content = client.Execute(request).Content;
dynamic contentobj = JObject.Parse(content);

rank = contentobj.QueueSkills.competitive.SeasonalInfoBySeasonID[$"{CurrentSeason}"].CompetitiveTier;
try
{
rank = contentobj.QueueSkills.competitive.SeasonalInfoBySeasonID[$"{CurrentSeason}"].CompetitiveTier;
}
catch (Exception)
{
rank = "0";
}
RankList[playerno] = GetLRankIcon(rank);
try
{
Expand Down
6 changes: 0 additions & 6 deletions WAIUA/Commands/LiveMatch.cs

This file was deleted.

1 change: 0 additions & 1 deletion WAIUA/WAIUA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="RestSharp" Version="106.12.0" />
<PackageReference Include="System.Collections" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 42c915d

Please sign in to comment.