Add some filtering

This commit is contained in:
PAlexanderFranklin 2023-08-31 23:28:00 -07:00
parent 64ff788ff6
commit 5f4abc1a43

View File

@ -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
}