def do_GET(self) -> None:
# pylint: disable=invalid-name,missing-function-docstring
if self.pagename == 'booking':
- b = self.server.bookings[int(self.params.first('idx'))]
+ b = self.server.bookings[int(self.path_toks[2])]
dat_lines = self.server.dat_lines[b.idx_start:b.idx_end]
self.send_rendered(Path('index.tmpl'), {'dat_lines': dat_lines})
elif self.pagename == 'raw':
{% if l.type == "value" %}
<td class="amt">{{l.amt}}</td><td class="curr">{{l.curr|truncate(4,true,"…")}}</td><td>{{l.acc}}</td>
{% elif l.type == "intro" %}
- <td class="code" colspan=3><a href="booking?idx={{l.booking.id_}}">{{l.code}}</a></td>
+ <td class="code" colspan=3><a href="/booking/{{l.booking.id_}}">{{l.code}}</a></td>
{% else %}
<td colspan=3>{{l.code}}</td>
{% endif %}