Skip to content

Commit

Permalink
does not index stations reporting NIL=
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingeek committed Mar 13, 2024
1 parent 0352682 commit 8df86a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flyingeek/lidojs",
"version": "1.6.69",
"version": "1.6.70",
"description": "convert Lido OFP text files",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ogimet_idx.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ogimet_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ogimet12HoursIndexSet(hours) {
const stationSet = new Set();
const parsed = Papa.parse(data);
parsed.data.slice(1).forEach((row) => {
if (row[0].match(/^\d{5}$/u)) {
if (row[0].match(/^\d{5}$/u) && !row[6].endsWith('NIL=')) {
stationSet.add(row[0]);
}
});
Expand Down

0 comments on commit 8df86a9

Please sign in to comment.