aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorstuebinm2024-04-24 21:52:45 +0200
committerstuebinm2024-04-24 21:52:45 +0200
commitd4f4208fe66d3813b65312dac0bf895c4cdc53d6 (patch)
tree698592178936900ae76985f5e1b3cdf72123afb4 /site
parent607b9486a81ed6cb65d30227aeecea3412bd1ccd (diff)
restructure: save a ticket's stop in the database
now mostly independent of the gtfs, but still no live-reloading of it.
Diffstat (limited to 'site')
-rw-r--r--site/obu.hamlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/obu.hamlet b/site/obu.hamlet
index 7068014..ed8017a 100644
--- a/site/obu.hamlet
+++ b/site/obu.hamlet
@@ -1,7 +1,7 @@
<h1>_{MsgOBU}
<section>
- <h2>#{tripId} _{Msgon} #{day}
+ <h2>#{ticketTripName} _{Msgon} #{ticketDay}
<strong>Token:</strong> <span id="token">
<section>
@@ -107,10 +107,10 @@
async function main() {
- let trip = await (await fetch("/api/trip/#{tripId}")).json();
+ let trip = await (await fetch("/api/trip/#{ticketTripName}")).json();
console.log("got trip info");
- token = await (await fetch("/api/train/register/#{tripId}", {
+ token = await (await fetch("/api/train/register/#{UUID.toText ticketId}", {
method: "POST",
body: JSON.stringify({agent: "onboard-unit"}),
headers: {"Content-Type": "application/json"}