diff --git a/Makefile b/Makefile index b658815..4ac1c5a 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ convert: bash ./scripts/concat_org.sh mv all_tasks.org sources/ node parse_orgmode_to_json.mjs - ts-node render_chart.mjs + ts-node render_chart.ts start: npm start copyTasksJson : diff --git a/render_chart.ts b/render_chart.ts index 903844f..f0155e9 100644 --- a/render_chart.ts +++ b/render_chart.ts @@ -11,10 +11,10 @@ const chartType = 'line' // time in : weeks, months, years, days -// const time_agreggate = 'days' +const time_agreggate = 'days' // const time_agreggate = 'weeks' // const time_agreggate = 'months' -const time_agreggate = 'years' +// const time_agreggate = 'years' function convertStats(tasks: any) { let converted = [] let weeks = Object.keys(tasks['statistics']['statistics']['dates'][time_agreggate]); diff --git a/sms_to_csv.mjs b/sms_to_csv.mjs index afcc60f..fd867ab 100644 --- a/sms_to_csv.mjs +++ b/sms_to_csv.mjs @@ -53,7 +53,7 @@ function convertToCsv (elementsArray) { */ function convertJsonToCsvAndPersistTSVFile (jsonFilePath, outputFileTSVName) { - console.log('convert', folder_base+'output/' + jsonFilePath) + console.log('convertJsonToCsvAndPersistTSVFile ', folder_base+'output/' + jsonFilePath) fs.readFile(folder_base+'output/' + jsonFilePath, 'utf8', function (err, data) { data = JSON.parse(data) console.log('data', data.length) diff --git a/utils.mjs b/utils.mjs index 2fa85b8..cd3ed82 100644 --- a/utils.mjs +++ b/utils.mjs @@ -17,7 +17,7 @@ const outputAbsolutePath = '/home/tykayn/Nextcloud/ressources/social sorting/out export async function writeFileInOuputFolderFromJsonObject (fileName, jsonObjectThing) { - // console.log('statistics.dates', statistics.dates) + console.log('writeFileInOuputFolderFromJsonObject', fileName) let fullpath = `${outputAbsolutePath}${fileName}` return await fs.writeFileSync(