From 68d445fa0daf091385f0ef1a011e9ececdb26065 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 15 Jul 2024 18:40:06 -0400 Subject: [PATCH] Todos and Anthology Parser --- .../GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js | 8 ++++---- Todos.md | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js b/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js index 869d75ba..3a43f122 100755 --- a/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js +++ b/Scripts/GAS_GS/AnthologyCSV-Parse-Prod/MasterCSV_Parser.js @@ -6,9 +6,9 @@ function main() { while (files.hasNext()) { var file = files.next(); var getDate = new Date(); - var date = Utilities.formatDate(getDate, 'America/New_York', 'MM/dd/yyyy hh:mm'); + var date = Utilities.formatDate(getDate, 'America/New_York', 'MM/dd/yyyy hh'); var fileDate = file.getDateCreated(); - var fileDateFormatted = Utilities.formatDate(fileDate, 'America/New_York', 'MM/dd/yyyy hh:mm'); + var fileDateFormatted = Utilities.formatDate(fileDate, 'America/New_York', 'MM/dd/yyyy hh'); if (date == fileDateFormatted) { Logger.log("Updated: "+file) var updated_file = file.getBlob() @@ -34,10 +34,10 @@ function moveOldFiles() { while (files.hasNext()) { var file = files.next(); var getDate = new Date(); - var date = Utilities.formatDate(getDate, 'America/New_York', 'MM/dd/yyyy hh:mm' ); + var date = Utilities.formatDate(getDate, 'America/New_York', 'MM/dd/yyyy hh' ); var fileDate = file.getDateCreated(); Logger.log("FILE: "+file+", DATE UPLOADED: "+fileDate) - var fileDateFormatted = Utilities.formatDate(fileDate, 'America/New_York', 'MM/dd/yyyy hh:mm'); + var fileDateFormatted = Utilities.formatDate(fileDate, 'America/New_York', 'MM/dd/yyyy hh'); if (date != fileDateFormatted) { const destination = DriveApp.getFolderById('1cIPZCgoj8XdjMIfL75QfomJAxsy2smGT'); file.moveTo(destination); diff --git a/Todos.md b/Todos.md index 456695ab..ad18567d 100644 --- a/Todos.md +++ b/Todos.md @@ -365,3 +365,6 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th - [X] Anthology - Write up flow to test search bar +## 07-15-2024 + +- [ ] MATTR - Create ticket spreadsheet to share with client.