update
This commit is contained in:
parent
48420b2e18
commit
2705e7281e
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
export.json
|
export.json
|
||||||
.dev.env
|
.dev.env
|
||||||
|
dev
|
|
@ -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 |
|
0
tool/lib/substancesLib.jq
Normal file
0
tool/lib/substancesLib.jq
Normal 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 |
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue