Skip to content

Commit 91983cd

Browse files
committed
chore: update bike list and update logic
1 parent 1d1573b commit 91983cd

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

assets/bikeSerialNumberMapping.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@
682682
"E0793": "dfdb86b83a",
683683
"E0794": "81598c0155",
684684
"E0795": "a0598f1365",
685-
"E0796": "c2f38c70cd",
685+
"E0796": "672df0c67c",
686686
"E0797": "dc2e00be4c",
687687
"E0798": "9c2e19b71c",
688688
"E0799": "762e0f7b2c",
@@ -809,7 +809,7 @@
809809
"E0921": "addb9bb75a",
810810
"E0922": "9b59987f25",
811811
"E0923": "b190e71cda",
812-
"E0924": "1e597a7845",
812+
"E0924": "F82E03B96C",
813813
"E0925": "bbdb93d92a",
814814
"E0926": "8259946a25",
815815
"E0927": "a659777df5",
@@ -979,7 +979,7 @@
979979
"E1100": "622e0ccc8c",
980980
"E1101": "3dd4593282",
981981
"E1102": "6cd4715b92",
982-
"E1103": "1ea27acf09",
982+
"E1103": "1EA27ACF09",
983983
"E1104": "24d4ac0e52",
984984
"E1105": "882e006acc",
985985
"E1106": "edd4b68d02",
@@ -1269,6 +1269,7 @@
12691269
"E1428": "63d4c00572",
12701270
"E1429": "90db93528a",
12711271
"E1430": "9a2e0df54c",
1272+
"E1431": "582E02A8DC",
12721273
"E1432": "a82e0b911c",
12731274
"E1433": "a9d4c916a2",
12741275
"E1434": "9bd4c21f92",
@@ -2003,7 +2004,7 @@
20032004
"E2210": "ca2e01f91c",
20042005
"E2211": "022e06466c",
20052006
"E2212": "4a2e0c741c",
2006-
"E2213": "402e03c1ac",
2007+
"E2213": "1D2E0FC0FC",
20072008
"E2214": "982e00ca7c",
20082009
"E2215": "eb2e10b96c",
20092010
"E2216": "f22e1909cc",
@@ -2149,6 +2150,7 @@
21492150
"E2357": "a62e0f0b8c",
21502151
"E2358": "732e07164c",
21512152
"E2359": "4c2e009efc",
2153+
"E2360": "fd2e09e63c",
21522154
"E2361": "9b2e06cf7c",
21532155
"E2362": "a52e10d74c",
21542156
"E2363": "142e190f2c",
@@ -2291,6 +2293,7 @@
22912293
"E2500": "d82e09b34c",
22922294
"E2501": "7d2dfb67cc",
22932295
"E2502": "f42e0d5b8c",
2296+
"E2503": "7c2e12acec",
22942297
"E2504": "5e2e0d116c",
22952298
"E2505": "d02e0f2ddc",
22962299
"E2506": "de2e119d7c",
@@ -2328,6 +2331,7 @@
23282331
"E2538": "c92e0cc72c",
23292332
"E2540": "fb2e0e77ac",
23302333
"E2541": "e42e05834c",
2334+
"E2542": "452e0f284c",
23312335
"E2543": "132e1c3d1c",
23322336
"E2544": "352e0f283c",
23332337
"E2545": "b82e0dd74c",
@@ -2358,6 +2362,7 @@
23582362
"E2570": "3f2e08a5bc",
23592363
"E2571": "012e094a6c",
23602364
"E2572": "d92e0b10ec",
2365+
"E2573": "dc2e00fe0c",
23612366
"E2574": "632dff7dcc",
23622367
"E2575": "1a2e0db58c",
23632368
"E2576": "ee2df0dfec",
@@ -2366,5 +2371,10 @@
23662371
"E2580": "7f2dfcf25c",
23672372
"E2581": "f62e0703dc",
23682373
"E2582": "d12e0300fc",
2369-
"E2584": "cd2e126d9c"
2374+
"E2584": "cd2e126d9c",
2375+
"E2585": "c1db93830a",
2376+
"E2589": "b8db91f80a",
2377+
"E2594": "ac59798905",
2378+
"E2595": "425979a7c5",
2379+
"E2598": "b6db8512fa"
23702380
}

scripts/stations.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,11 @@ async function updateBikeList() {
331331
// compact the missing bikes list
332332
const newList = Object.fromEntries(
333333
[...Object.entries(bikeSerialNumberMapping), ...missingBikes]
334-
// Keep only the electric bikes and the classic bikes that don't have an electric one with the same number
335-
.filter(([name], _, self) => name.startsWith("E") || !self.find(([b]) => b === name.replace("C", "E")))
334+
// Keep only the electric bikes and the classic bikes that don't have an electric one with the same number, and a secret third option
335+
.filter(
336+
([name], _, self) =>
337+
name.startsWith("E") || !self.find(([b]) => b === name.replace("C", "E")) || !["E", "C"].includes(name[0])
338+
)
336339
.sort(([a], [b]) => Number(a.slice(1)) - Number(b.slice(1)))
337340
);
338341

0 commit comments

Comments
 (0)