agentic-kit-common 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agentic-kit-common might be problematic. Click here for more details.
- agentic_kit_common/orm/manager.py +5 -5
- {agentic_kit_common-0.0.5.dist-info → agentic_kit_common-0.0.6.dist-info}/METADATA +1 -1
- {agentic_kit_common-0.0.5.dist-info → agentic_kit_common-0.0.6.dist-info}/RECORD +5 -5
- {agentic_kit_common-0.0.5.dist-info → agentic_kit_common-0.0.6.dist-info}/WHEEL +0 -0
- {agentic_kit_common-0.0.5.dist-info → agentic_kit_common-0.0.6.dist-info}/top_level.txt +0 -0
|
@@ -14,8 +14,7 @@ class BaseOrmManager(object):
|
|
|
14
14
|
def get_by_id(cls, obj_id, close_session_after_curd=False):
|
|
15
15
|
with get_db_session() as db:
|
|
16
16
|
query = db.query(cls._model_cls) \
|
|
17
|
-
.filter(cls._model_cls.id == obj_id)
|
|
18
|
-
.filter(cls._model_cls.active == True)
|
|
17
|
+
.filter(cls._model_cls.id == obj_id)
|
|
19
18
|
|
|
20
19
|
if hasattr(cls._model_cls, 'active'):
|
|
21
20
|
query = query.filter(cls._model_cls.active == 1)
|
|
@@ -124,9 +123,10 @@ class BaseOrmManager(object):
|
|
|
124
123
|
@classmethod
|
|
125
124
|
def soft_delete_obj(cls, obj):
|
|
126
125
|
"""软删除obj信息"""
|
|
127
|
-
cls.
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
if hasattr(cls._model_cls, 'active'):
|
|
127
|
+
cls.update_obj(obj, **{
|
|
128
|
+
'active': False
|
|
129
|
+
})
|
|
130
130
|
return obj
|
|
131
131
|
|
|
132
132
|
@classmethod
|
|
@@ -3,7 +3,7 @@ agentic_kit_common/minio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
3
3
|
agentic_kit_common/minio/minio_manager.py,sha256=PzoUWn0YqXTHx1UClbkwLkIUmv5O4aSDc7eVf08qOzs,21494
|
|
4
4
|
agentic_kit_common/orm/__init__.py,sha256=wqY81g3P7FftFvLK5SaxFJzNNxrQwtmcb4RCXOSAZa8,71
|
|
5
5
|
agentic_kit_common/orm/base.py,sha256=QIura_i2nIY2XeA3-KkO2loLNbEAoJK2qx0hu_8nhYU,2277
|
|
6
|
-
agentic_kit_common/orm/manager.py,sha256=
|
|
6
|
+
agentic_kit_common/orm/manager.py,sha256=gHrxbf84mtO9XO_DhkXZp0cishc7MqnbCJUSTXwNBm8,4649
|
|
7
7
|
agentic_kit_common/orm/session.py,sha256=LX4ZUKJNXdcQ0KqRt5L0pJX-QG-tDyKXEDijcPUkGD0,2716
|
|
8
8
|
agentic_kit_common/vector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
agentic_kit_common/vector/embedding/__init__.py,sha256=mp--cfCDzTn5hNxzcIAU4m0g4F0d0rrZErFVWsGDvx4,40
|
|
@@ -22,7 +22,7 @@ test/settings.py,sha256=vU1dqUvGzshi6MG7JbGfW4jKfUsfAObgUfky-LMjUNs,344
|
|
|
22
22
|
test/test_embedding.py,sha256=78M6t9tt6-oCfdQZfOartCIkUFZMvogcu5UKJh1lJb8,609
|
|
23
23
|
test/test_minio.py,sha256=TOkX8A2pPkjrwAIH88xBZmFpDc1ZgTk1QS6mtubOZ-Y,2308
|
|
24
24
|
test/test_vector.py,sha256=4sJ7bXt5iRhc6j1Ig0bZ1j0huPU-clnsnT7O0-uFbkw,1311
|
|
25
|
-
agentic_kit_common-0.0.
|
|
26
|
-
agentic_kit_common-0.0.
|
|
27
|
-
agentic_kit_common-0.0.
|
|
28
|
-
agentic_kit_common-0.0.
|
|
25
|
+
agentic_kit_common-0.0.6.dist-info/METADATA,sha256=gVF8uH26ZIe01e366BNhUARRl2qoTFy1k5ODMAfHV0g,7496
|
|
26
|
+
agentic_kit_common-0.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
agentic_kit_common-0.0.6.dist-info/top_level.txt,sha256=nEKDlp84vqKSVWssGcxyuIsTqWLhMo45xqMs2GK4Dgg,24
|
|
28
|
+
agentic_kit_common-0.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|