Skip to content

Commit

Permalink
minor tweaks ✅; 4.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jul 5, 2024
1 parent 5b92e5c commit f9dcbe3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/stop_times.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ UPDATE "${opt.schema}".stop_times
SET stop_sequence_consec = t.seq
FROM (
SELECT
row_number() OVER (PARTITION BY trip_id ORDER BY stop_sequence ASC) - 1 AS seq,
row_number() OVER (PARTITION BY trip_id ORDER BY stop_sequence ASC)::integer - 1 AS seq,
trip_id, stop_sequence
FROM "${opt.schema}".stop_times
) AS t
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gtfs-via-postgres",
"description": "Process GTFS using PostgreSQL.",
"version": "4.10.1",
"version": "4.10.2",
"main": "lib/index.js",
"bin": {
"gtfs-to-sql": "cli.js",
Expand Down
1 change: 0 additions & 1 deletion test/postgraphile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ trap 'exit_code=$?; kill -- $(jobs -p); exit $exit_code' SIGINT SIGTERM EXIT
../scripts/run-postgraphile.js &
sleep 2

expected="$(cat sample-gtfs-feed-postgraphile-test.res.json)"
body=$(node -e 'process.stdout.write(JSON.stringify({query: fs.readFileSync("sample-gtfs-feed-postgraphile-test.graphql", {encoding: "utf8"})}))')
actual_path="$(mktemp -t sample-gtfs-feed-postgraphile-test-XXX)"
curl -X POST 'http://localhost:3000/graphql' -H 'Content-Type: application/json' -H 'Accept: application/json' --data "$body" -fsS | jq -r --tab . >"$actual_path"
Expand Down

0 comments on commit f9dcbe3

Please sign in to comment.