Compare commits
No commits in common. "fbd5a66156643d52cdf82a109cc5b33bc3d35875" and "f8559bbe0642a51d6b63227a3d9623f75fe99fd6" have entirely different histories.
fbd5a66156
...
f8559bbe06
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user