From 882f59498b1f85e4baa3055e805355b30434d47c Mon Sep 17 00:00:00 2001 From: mikecerc Date: Thu, 30 Mar 2023 12:37:12 -0400 Subject: [PATCH] fixed sheets bug --- package.json | 2 +- src/main/api/sheetsService.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ebefeea..79d45fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-battery-logger", - "version": "2.3.1", + "version": "2.3.2", "description": "A digital battery logger for FRC", "main": "./dist/main/index.js", "type": "commonjs", diff --git a/src/main/api/sheetsService.ts b/src/main/api/sheetsService.ts index c9a00f2..cd68ce3 100644 --- a/src/main/api/sheetsService.ts +++ b/src/main/api/sheetsService.ts @@ -105,7 +105,7 @@ async function syncDb(): Promise { const values = docs.map((doc) => { return [ `${doc.number.slice(0, 2)}${doc.number.slice(2, 4)}`, - doc.out == true ? "in" : "out", + doc.out == true ? "out" : "in", doc.soc, doc.rint, doc.time, @@ -147,7 +147,7 @@ async function syncDb(): Promise { const values = docs.map((doc) => { return [ `${doc.number.slice(0, 2)}${doc.number.slice(2, 4)}`, - doc.out == true ? "in" : "out", + doc.out == true ? "out" : "in", doc.soc, doc.rint, doc.time,