From 5f4abc1a43815c4e901937bcd1b37a7bd98e8b33 Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Thu, 31 Aug 2023 23:28:00 -0700 Subject: [PATCH] Add some filtering --- src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.js b/src/index.js index 56b426f..e76f4c7 100644 --- a/src/index.js +++ b/src/index.js @@ -87,7 +87,12 @@ async function main() { ) let body = await res.json() body.data.activities.map((activity) => { + activity.recognizedAt = (activity.recognizedAt ?? 1) * 1000 + if (activity.formattedTotal == "$0.00") { + return "" + } delete activity.routing + delete activity.uuid if (activity.tripMetaData?.mapUrl) { delete activity.tripMetaData.mapUrl }