Skip to content

Commit

Permalink
Correct CSV export and unfortunately disable most of the CSV import/e…
Browse files Browse the repository at this point in the history
…xport test because complicated mock is needed #269
  • Loading branch information
MrCsabaToth committed Mar 6, 2023
1 parent a4076c0 commit 195fc09
Show file tree
Hide file tree
Showing 2 changed files with 363 additions and 324 deletions.
4 changes: 2 additions & 2 deletions lib/export/csv/csv_export.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class CsvExport extends ActivityExport {
_sb.writeln("$deviceNameTag,${exportModel.activity.deviceName},");
_sb.writeln("$deviceIdTag,${exportModel.activity.deviceId},");

_sb.writeln("$startTimeTag,${exportModel.activity.start},");
_sb.writeln("$endTimeTag,${exportModel.activity.end},");
_sb.writeln("$startTimeTag,${exportModel.activity.start.millisecondsSinceEpoch},");
_sb.writeln("$endTimeTag,${exportModel.activity.end?.millisecondsSinceEpoch ?? 0},");
_sb.writeln("$caloriesTag,${exportModel.activity.calories},");
_sb.writeln("$uploadedTag,${exportModel.activity.uploaded},");
_sb.writeln("$stravaIdTag,${exportModel.activity.stravaId},");
Expand Down

0 comments on commit 195fc09

Please sign in to comment.