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.

@@ -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.update_obj(obj, **{
128
- 'active': False
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-kit-common
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Common utilities and tools for agentic kit ecosystem
5
5
  Home-page:
6
6
  Author: manson
@@ -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=HU8dHNb76uTo2KMOXdNG3nn3uea7vPYIFPO61SQoNIU,4648
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.5.dist-info/METADATA,sha256=YBhN8h9vA8H2kYHP0SyGh0Vgj-f1PiCjQLmVhoYCRG4,7496
26
- agentic_kit_common-0.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- agentic_kit_common-0.0.5.dist-info/top_level.txt,sha256=nEKDlp84vqKSVWssGcxyuIsTqWLhMo45xqMs2GK4Dgg,24
28
- agentic_kit_common-0.0.5.dist-info/RECORD,,
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,,