mirror of
https://github.com/maciejpedzich/six-degs-of-f1.git
synced 2024-11-10 00:43:02 +01:00
Compare commits
No commits in common. "4add5754b68df11f81c7428b79e29aeff4dc0e71" and "98711d228b81cdcf086d681778e0b50c28560796" have entirely different histories.
4add5754b6
...
98711d228b
@ -25,7 +25,7 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: memgraph/memgraph:2.19.0
|
||||
image: memgraph/memgraph:2.18.1
|
||||
container_name: sixdegs-db
|
||||
hostname: sixdegs-db
|
||||
networks:
|
||||
|
1629
data/drivers.csv
1629
data/drivers.csv
File diff suppressed because it is too large
Load Diff
@ -5002,4 +5002,3 @@ driverId,teammateId
|
||||
784,788
|
||||
826,843
|
||||
849,851
|
||||
848,861
|
||||
|
|
1924
package-lock.json
generated
1924
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -10,14 +10,14 @@
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^8.3.3",
|
||||
"astro": "^4.15.1",
|
||||
"neo4j-driver": "^5.24.0"
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"astro": "^4.4.14",
|
||||
"neo4j-driver": "^5.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.3",
|
||||
"@astrojs/check": "^0.5.6",
|
||||
"@picocss/pico": "^2.0.6",
|
||||
"typescript": "^5.5.4",
|
||||
"typescript": "^5.4.2",
|
||||
"vis-network": "^9.1.9"
|
||||
}
|
||||
}
|
||||
|
@ -22,14 +22,8 @@ let graphProps: Awaited<ReturnType<typeof getShortestPaths>> = {
|
||||
try {
|
||||
driverNames = await getDriverNames();
|
||||
|
||||
if (noEmptyParams && paramsNotEqual) {
|
||||
const timestamp = new Date().toLocaleString('pl');
|
||||
const clientIp =
|
||||
Astro.request.headers.get('X-Forwarded-For') || Astro.clientAddress;
|
||||
|
||||
console.log(`[${timestamp}] ${clientIp} FROM ${source} TO ${dest}`);
|
||||
if (noEmptyParams && paramsNotEqual)
|
||||
graphProps = await getShortestPaths(source, dest);
|
||||
}
|
||||
} catch (error) {
|
||||
return Astro.redirect('/error');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user