From 1385dea8be9e86e236c501cc59f6424a36a3baa4 Mon Sep 17 00:00:00 2001 From: robot-datalens-back <151861227+robot-datalens-back@users.noreply.github.com> Date: Thu, 23 May 2024 12:30:49 +0300 Subject: [PATCH] support value without dot (#457) (#458) Co-authored-by: Sergei Borodin --- .../connection_executors/qe_serializer/schema_actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dl_core/dl_core/connection_executors/qe_serializer/schema_actions.py b/lib/dl_core/dl_core/connection_executors/qe_serializer/schema_actions.py index 1c27b0787..5c84810a4 100644 --- a/lib/dl_core/dl_core/connection_executors/qe_serializer/schema_actions.py +++ b/lib/dl_core/dl_core/connection_executors/qe_serializer/schema_actions.py @@ -40,7 +40,7 @@ def dump_dba_cls(self, act: dba_actions.ActionExecuteQuery) -> str: return f"{act.dba_cls.__module__}.{act.dba_cls.__qualname__}" def load_dba_cls(self, value: str) -> Union[Type[CommonBaseDirectAdapter]]: - mod_name, cls_name = value.rsplit(".", 1) + mod_name, cls_name = value.rsplit(".", 1) if "." in value else (None, value) candidate = next( filter( lambda clz: clz.__module__ == mod_name and clz.__qualname__ == cls_name or clz.__qualname__ == value,