home
·
contact
·
privacy
projects
/
plomledger
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11dedac
)
On Booking copy, jump into edit_structured view of new Booking.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Feb 2025 21:17:23 +0000
(22:17 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Feb 2025 21:17:23 +0000
(22:17 +0100)
ledger.py
patch
|
blob
|
history
diff --git
a/ledger.py
b/ledger.py
index 1b3aa273dbaa3fb1908da8824212c191297cae36..f8f92c0d1db8a8ba4f7c64681e75d2e51a3d09f1 100755
(executable)
--- a/
ledger.py
+++ b/
ledger.py
@@
-426,9
+426,10
@@
class Handler(PlomHttpHandler):
id_ = int(id_str)
if action == 'move':
id_ = self.server.move_booking(id_, dir_ == 'up')
+ return Path(self.path).joinpath(f'#{id_}')
elif action == 'copy':
id_ = self.server.copy_booking(id_, dir_ == 'to_end')
-
return Path(self.path).joinpath(f'#
{id_}')
+
return Path(EDIT_STRUCT).joinpath(f'
{id_}')
def do_GET(self) -> None:
""""Route GET requests to respective handlers."""