Skip to content

Commit a604272

Browse files
committed
fix: task confirmation
1 parent 83dac9c commit a604272

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/bot/commands/tasks/create_task.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ async def waiting_task_approve_handler(message: IncomingMessage, bot: Bot) -> No
162162
await bot.send(message=get_status_message(message, strings.SUCCESS_TITLE))
163163

164164
elif message.body == strings.CANCEL_TASK_COMMAND:
165-
await message.state.fsm.change_state(CreateTaskStates.WAITING_TASK_TITLE)
165+
await message.state.fsm.change_state(
166+
CreateTaskStates.WAITING_TASK_TITLE,
167+
task=TaskInCreation(user_huid=message.sender.huid),
168+
)
166169
if attachment.file_storage_id:
167170
await file_storage.remove(attachment.file_storage_id)
168171
await bot.answer_message(

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[tool.poetry]
44
name = "todo-bot"
5-
version = "2.0.3"
5+
version = "2.0.4"
66
description = "TODO"
77
authors = []
88

0 commit comments

Comments
 (0)