This commit is contained in:
chaos 2024-11-09 09:52:33 +00:00
parent 48420b2e18
commit 2705e7281e
4 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
export.json export.json
.dev.env .dev.env
dev

View file

@ -1,8 +1,6 @@
include "dropins"; include "dropins";
import "lib/typeLib" as typeLib; import "typeLib" as typeLib;
#["DEBUG:",{"creationDate":"number","ingestions":[{"administrationRoute":"string","consumerName":"null","creationDate":"number","customUnitId":"null","dose":"number","estimatedDoseStandardDeviation":"null","isDoseAnEstimate":"boolean","notes":"string","stomachFullness":"null","substanceName":"string","time":"number","units":"string"}],"isFavorite":"boolean","location":"null","ratings":"array:empty/unknown","sortDate":"number","text":"string","timedNotes":"array:empty/unknown","title":"string"}]
def ensureAdministrationRoute: def ensureAdministrationRoute:
. as $administrationRoute | . as $administrationRoute |

View file

View file

@ -6,9 +6,9 @@ import "lib/stringLib" as stringLib;
import "lib/tableLib" as tableLib; import "lib/tableLib" as tableLib;
import "lib/utilsLib" as utilsLib; import "lib/utilsLib" as utilsLib;
import "lib/journalLib" as journalLib; import "lib/journalLib" as journalLib;
import "lib/journalTypes" as journalTypes;
import "journalUtils" as journalUtils; import "journalUtils" as journalUtils;
import "types" as types;
def printExperienceStats($stats; $substanceFilter; $consumerFilter; $withTitle): def printExperienceStats($stats; $substanceFilter; $consumerFilter; $withTitle):
. as $experience | . as $experience |
@ -131,7 +131,7 @@ def main:
] | join("\n") | halt_error(1); ] | join("\n") | halt_error(1);
$ARGS.named["exportFile"][0] as $exportData | $ARGS.named["exportFile"][0] as $exportData |
$exportData | types::ensureExportData | $exportData | journalTypes::ensureExportData |
($ARGS | argsLib::parseArgs) as $parsedArgs | ($ARGS | argsLib::parseArgs) as $parsedArgs |