diff --git a/Code/Program.cs b/Code/Program.cs index ccc80f7..45364a8 100644 --- a/Code/Program.cs +++ b/Code/Program.cs @@ -1,10 +1,7 @@ using Flowframes.Data; using Flowframes.IO; -using Flowframes.OS; using System; using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; diff --git a/Code/UI/GetWebInfo.cs b/Code/UI/GetWebInfo.cs index e382454..925d68e 100644 --- a/Code/UI/GetWebInfo.cs +++ b/Code/UI/GetWebInfo.cs @@ -5,6 +5,7 @@ using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Microsoft.VisualBasic.Logging; namespace Flowframes.UI { @@ -30,6 +31,7 @@ namespace Flowframes.UI { try { + Logger.Log("Parsing Patrons from CSV...", true); List goldPatrons = new List(); List silverPatrons = new List(); string str = "Gold:\n"; @@ -39,17 +41,23 @@ namespace Flowframes.UI string line = lines[i].Replace(";", ","); string[] values = line.Split(','); if (i == 0 || line.Length < 10 || values.Length < 5) continue; - string name = values[0]; + string name = values[0].Trim(); + string status = values[4].Trim(); float amount = float.Parse(values[7], System.Globalization.CultureInfo.InvariantCulture); - if (amount >= 4.5f) + string tier = values[9].Trim(); + + if (status.Contains("Active")) { - if (amount >= 11f) + if (tier.Contains("Gold")) goldPatrons.Add(name); - else + + if (tier.Contains("Silver")) silverPatrons.Add(name); } } + Logger.Log($"Found {goldPatrons.Count} Gold Patrons, {silverPatrons.Count} Silver Patrons", true); + foreach (string pat in goldPatrons) str += pat + "\n";