File tree Expand file tree Collapse file tree 3 files changed +2
-98
lines changed Expand file tree Collapse file tree 3 files changed +2
-98
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class DiningParser {
32
32
builder . overwriteLocationCoordinates ( locationCoordinateOverwrites ) ;
33
33
}
34
34
35
- return [ ... locationBuilders . map ( ( builder ) => builder . build ( ) ) ] ;
35
+ return locationBuilders . map ( ( builder ) => builder . build ( ) ) ;
36
36
}
37
37
38
38
private async initializeLocationBuildersFromMainPage ( ) : Promise <
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { node } from "@elysiajs/node";
8
8
import { getDiffsBetweenLocationData } from "utils/diff" ;
9
9
import { getEmails } from "./db" ;
10
10
import LocationMerger from "utils/locationMerger" ;
11
- import { manualLocations } from "manualLocations" ;
12
11
13
12
let cachedLocations : ILocation [ ] = [ ] ;
14
13
@@ -28,8 +27,7 @@ async function reload(): Promise<void> {
28
27
const locations = await parser . process ( ) ;
29
28
locations . forEach ( ( location ) => locationMerger . addLocation ( location ) ) ;
30
29
}
31
- let finalLocations = locationMerger . getMostFrequentLocations ( ) ;
32
- finalLocations = [ ...finalLocations , ...manualLocations ] ;
30
+ const finalLocations = locationMerger . getMostFrequentLocations ( ) ;
33
31
if ( finalLocations . length === 0 ) {
34
32
notifySlack ( "<!channel> No data scraped! Skipping" ) ;
35
33
} else {
You can’t perform that action at this time.
0 commit comments