Skip to content

Commit

Permalink
Merge pull request #175 from mivano/fix/missing-name-csv-formatter
Browse files Browse the repository at this point in the history
Name was not included in the output when tags were included
  • Loading branch information
mivano authored Sep 17, 2024
2 parents d7e0b3f + 78dee9e commit 3604051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OutputFormatters/CsvOutputFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public override Task WriteDailyCost(DailyCostSettings settings, IEnumerable<Cost
foreach (var dailyCost in dailyCosts)
{
dynamic expando = new ExpandoObject();
expando.Name = dailyCost.Name;
expando.Date = dailyCost.Date;
expando.Cost = dailyCost.Cost;
expando.Currency = dailyCost.Currency;
Expand All @@ -56,8 +57,7 @@ public override Task WriteDailyCost(DailyCostSettings settings, IEnumerable<Cost
}
dailyCostWithTags.Add(expando);
}



return ExportToCsv(settings.SkipHeader, dailyCostWithTags);
}
else
Expand Down

0 comments on commit 3604051

Please sign in to comment.