Compare commits
39 Commits
20240712_1
...
main
Author | SHA1 | Date | |
---|---|---|---|
8b6c642883 | |||
aa81409944 | |||
dd3fd76dbc | |||
0abc76cd5a | |||
|
82cc604817 | ||
443e754659 | |||
04e50dd9ed | |||
236d357663 | |||
a361f89275 | |||
4f683455f6 | |||
5a93832f81 | |||
c7f65df091 | |||
a9cb0897ef | |||
c1d9452857 | |||
fb13501326 | |||
19a90adccb | |||
fbed314359 | |||
7022d23709 | |||
091e136ac6 | |||
1ef727df52 | |||
|
51e7b533aa | ||
cbffbc76be | |||
dce6f40a12 | |||
80762ad3c9 | |||
173042d741 | |||
fa74bc5fec | |||
fbfb97f71f | |||
5e0de0065b | |||
17e0a70de5 | |||
9a2d739189 | |||
3c752caeb9 | |||
a3f68176b7 | |||
81ea75c31d | |||
94c31a34f8 | |||
ba7dc57b46 | |||
d4f1cd6c9b | |||
b4d992414e | |||
0c159e121b | |||
93726137aa |
2198
pis/gw.yaml
2198
pis/gw.yaml
File diff suppressed because it is too large
Load Diff
@ -31,14 +31,17 @@ function sortAndMergeYAMLFiles() {
|
||||
return codeA - codeB
|
||||
})
|
||||
|
||||
const mergedYaml = yaml.stringify(mergedData);
|
||||
|
||||
|
||||
// Construct the output string
|
||||
// Construct the output string, removing duplicates
|
||||
let outputString = "pis:\n";
|
||||
const seenCodes = new Set();
|
||||
mergedData.forEach(item => {
|
||||
if (item.stops.length > 0) {
|
||||
if (!seenCodes.has(item.code) && item.stops.length > 0) {
|
||||
seenCodes.add(item.code);
|
||||
outputString += ` - code: "${item.code}"\n`;
|
||||
outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`;
|
||||
outputString += ` toc: "${item.toc || "gw"}"\n`;
|
||||
}
|
||||
});
|
||||
|
||||
@ -49,8 +52,9 @@ function sortAndMergeYAMLFiles() {
|
||||
console.error("Error writing gw.pis", err)
|
||||
}
|
||||
|
||||
// Remove any files created by dgp2
|
||||
files.forEach(file => {
|
||||
if (file.startsWith('dg_parser')) {
|
||||
if (file.startsWith('auto-')) {
|
||||
fs.unlinkSync(directoryPath + file);
|
||||
console.log(`Deleted file: ${file}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user