From a85ca7fc76ed2e2580831955e48ff927efa41352 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 24 Oct 2024 21:06:08 +0100 Subject: [PATCH] Add new codes and fix merge script --- pis/auto-manual-additions.yaml | 73 ++++++++++++++++++++++++++++++++++ scripts/merge-yaml.js | 2 +- 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 pis/auto-manual-additions.yaml diff --git a/pis/auto-manual-additions.yaml b/pis/auto-manual-additions.yaml new file mode 100644 index 0000000..76b76cf --- /dev/null +++ b/pis/auto-manual-additions.yaml @@ -0,0 +1,73 @@ + - code: "6545" + #headcode: 2U10 + #date: 2024-09-29 00:00:00 + #source_file: 0929 SuO 29th September 2024 - West DVR SCards - Main Issue.docx + stops: [bri,asd,fit,pwy,stj,nwp,cdf] + - code: "6379" + #headcode: 2V69 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [yvp,clc,bru,fro,wsb,tro,boa,avf,ffd,bth,olf,kyn,bri,lwh,srd,asd,fit] + - code: "6470" + #headcode: 2M73 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [pgn,tqy,trr,nta,tgm,dwl,dww,scs,ext,exd,tvp,tau] + - code: "6469" + #headcode: 2C99 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [bri,bmt,psn,nls,yat,wor,wnm,wsm,tau,tvp,exd] + - code: "6468" + #headcode: 2C97 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [bri,tau,tvp,exd] + - code: "1814" + #headcode: 2O52 + #date: 2024-10-04 00:00:00 + #source_file: 1004 FO 4th Oct 2024 - LTV GWR DVR SCARDs - Main Issue.docx + stops: [gld,sfr,chl,gom,dkt,dpd,bto,rei,rdh] + - code: "1781" + #headcode: 1V61 + #date: 2024-09-22 00:00:00 + #source_file: 0922 Sun 22 Sep 2024 LTV DVR S.Cards. main issue.docx + stops: [gtw,rdh,rei,dpd,gom,chl,sfr,gld,ncm,baw,wkm,rdg] + + - code: "1779" + #headcode: 1O68 + #date: 2024-09-22 00:00:00 + #source_file: 0922 Sun 22 Sep 2024 LTV DVR S.Cards. main issue.docx + stops: [rdg,wkm,baw,ncm,gld,sfr,chl,gom,dpd,rei,rdh,gtw] + - code: "1780" + #headcode: 1V71 + #date: 2024-09-22 00:00:00 + #source_file: 0922 Sun 22 Sep 2024 LTV DVR S.Cards. main issue.docx + stops: [gtw,rdh,rei,bto,dpd,dkt,gom,chl,sfr,gld,ash,ncm,fnn,baw,snd,crn,wkm,rdg] + - code: "1783" + #headcode: 1V69 + #date: 2024-09-22 00:00:00 + #source_file: 0922 Sun 22 Sep 2024 LTV DVR S.Cards. main issue.docx + stops: [gtw,rdh,rei,dpd,sfr,gld,ncm,baw,wkm,rdg] +## THIS CODE REQUIRES MANUAL VERIFICATION + - code: "6384" + #headcode: 2H72 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [bri,lwh,srd,asd,fit] +## THIS CODE REQUIRES MANUAL VERIFICATION + - code: "6383" + #headcode: 2H73 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + stops: [fit,asd,srd,lwh,bri] +## THIS CODE REQUIRES MANUAL VERIFICATION + - code: "6380" + #headcode: 2R54 + #date: 2024-10-03 00:00:00 + #source_file: 1003 ThO SC DVR.docx + + stops: [bth,olf,kyn,lwh,srd,asd,fit] + + ## All good + \ No newline at end of file diff --git a/scripts/merge-yaml.js b/scripts/merge-yaml.js index f1a69a8..045d793 100644 --- a/scripts/merge-yaml.js +++ b/scripts/merge-yaml.js @@ -39,7 +39,7 @@ function sortAndMergeYAMLFiles() { if (item.stops.length > 0) { outputString += ` - code: "${item.code}"\n`; outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`; - outputString += ` toc: "gw"`; + outputString += ` toc: "gw"\n`; } });