separate FSM
This commit is contained in:
4
app/FSM/__init__.py
Normal file
4
app/FSM/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from .states import OrderForm, SearchForm, OrderingForm
|
||||
|
||||
|
||||
__all__ = ["SearchForm", "OrderForm", "OrderingForm"]
|
||||
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