From eadfb3376e16bad6478fd007ae4363544ef9ef63 Mon Sep 17 00:00:00 2001 From: Sergei Borodin Date: Wed, 22 May 2024 18:15:28 +0200 Subject: [PATCH] support value without dot (#457) --- .../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,