File tree Expand file tree Collapse file tree
gemini-cli-vs-claude-code Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424def _fmt_task (task : dict ) -> str :
2525 status = CHECK if task ["completed" ] else EMPTY
26- suffix = f" (done { task ['completed_at' ][:10 ]} )" if task ["completed_at" ] else "" # noqa: E501
26+ suffix = f" (done { task ['completed_at' ][:10 ]} )" if task ["completed_at" ] else "" # noqa
2727 return f" { task ['id' ]:>3} { status } { task ['description' ]} { suffix } "
2828
2929
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ def add_task(self, description):
3131 if self .tasks :
3232 task_id = max (task ["id" ] for task in self .tasks ) + 1
3333
34- new_task = {"id" : task_id , "description" : description , "completed" : False }
34+ new_task = {
35+ "id" : task_id ,
36+ "description" : description ,
37+ "completed" : False ,
38+ }
3539 self .tasks .append (new_task )
3640 self .save_tasks ()
3741 return new_task
You can’t perform that action at this time.
0 commit comments