Skip to content

Commit 74d08b5

Browse files
committed
to
1 parent 3a2f751 commit 74d08b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

todos2/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class User: name:str; pwd:str
1111
class Todo:
1212
id:int; title:str; done:bool; name:str; details:str; priority:int
1313
def __ft__(self):
14-
ashow = A(self.title, hx_post=retr.rt(id=self.id), target_id='current-todo')
15-
aedit = A('edit', hx_post=edit.rt(id=self.id), target_id='current-todo')
14+
ashow = A(self.title, hx_post=retr.to(id=self.id), target_id='current-todo')
15+
aedit = A('edit', hx_post=edit.to(id=self.id), target_id='current-todo')
1616
dt = '✅ ' if self.done else ''
1717
cts = (dt, ashow, ' | ', aedit, Hidden(id="id", value=self.id), Hidden(id="priority", value="0"))
1818
return Li(*cts, id=f'todo-{self.id}')

0 commit comments

Comments
 (0)