Skip to content

Commit

Permalink
Include generated fields in CSV export
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 29, 2023
1 parent f127047 commit a2a60dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hub/exportWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ self.onmessage = (event) => {
}
});
};
processTree(log.getFieldTree(false));
processTree(log.getFieldTree(options.format !== "wpilog")); // Include generated field if not wpilog

// Filter by prefix
// Filter by type and prefix
fields = fields.filter((field) => log.getType(field) !== LoggableType.Empty);
fields = filterFieldByPrefixes(fields, options.prefixes, options.format === "wpilog");

// Convert to requested format
Expand Down

0 comments on commit a2a60dc

Please sign in to comment.