From d4f4208fe66d3813b65312dac0bf895c4cdc53d6 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 24 Apr 2024 21:52:45 +0200 Subject: restructure: save a ticket's stop in the database now mostly independent of the gtfs, but still no live-reloading of it. --- site/obu.hamlet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'site') 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 @@

_{MsgOBU}
-

#{tripId} _{Msgon} #{day} +

#{ticketTripName} _{Msgon} #{ticketDay} Token:
@@ -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"} -- cgit v1.2.3