upd get_callable_str async
This commit is contained in:
@@ -6,7 +6,7 @@ from ....utils.main import get_callable_str
|
||||
from ..context import ContextData, CallbackCommand
|
||||
|
||||
|
||||
def add_filter_controls(
|
||||
async def add_filter_controls(
|
||||
keyboard_builder: InlineKeyboardBuilder,
|
||||
entity_descriptor: EntityDescriptor,
|
||||
filter: str = None,
|
||||
@@ -15,7 +15,7 @@ def add_filter_controls(
|
||||
):
|
||||
caption = ", ".join(
|
||||
[
|
||||
get_callable_str(
|
||||
await get_callable_str(
|
||||
entity_descriptor.fields_descriptors[field_name].caption,
|
||||
entity_descriptor,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user