Compare commits

..

No commits in common. "fbd5a66156643d52cdf82a109cc5b33bc3d35875" and "f8559bbe0642a51d6b63227a3d9623f75fe99fd6" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -102,7 +102,7 @@ public class Entry {
this.datetime = json.GetValue("timestamp")?.ToString();
if (!string.IsNullOrEmpty(this.datetime)) {
this.timestamp = DateTime.Parse(this.datetime, null, System.Globalization.DateTimeStyles.RoundtripKind);
this.timestamp = DateTime.Parse(this.datetime);
}
}

View File

@ -68,12 +68,11 @@ public partial class MainWindow : Window {
TransactionParser parser = new TransactionParser();
List<Transaction> transactions = parser.Parse(entries);
List<IncompleteTransaction> incompletes = transactions.OfType<IncompleteTransaction>().ToList();
// Log incomplete and remove them from the results.
foreach (var incomplete in incompletes) {
foreach (var incomplete in transactions.OfType<IncompleteTransaction>()) {
Log(incomplete.Reason);
transactions.Remove(incomplete);
}
transactions.RemoveAll(x => incompletes.Contains(x));
report = new Report(transactions);
this.entries.ItemsSource = report.Objectives;