separate FSM
This commit is contained in:
24
app/FSM/states.py
Normal file
24
app/FSM/states.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
|
||||
|
||||
class SearchForm(StatesGroup):
|
||||
search_option = State()
|
||||
data_to_search = State()
|
||||
search_result = State()
|
||||
|
||||
|
||||
class OrderForm(StatesGroup):
|
||||
id = State()
|
||||
worker_id = State()
|
||||
status_id = State()
|
||||
counterparty = State()
|
||||
customer = State()
|
||||
commencement_work = State()
|
||||
end_work = State()
|
||||
description = State()
|
||||
|
||||
|
||||
class OrderingForm(StatesGroup):
|
||||
tools_list = State()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user