python-general-be-lib 0.8.2__py3-none-any.whl → 0.8.3__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.
@@ -32,6 +32,7 @@ def _list_adapter(model: Type[BaseModel]) -> TypeAdapter:
32
32
  """
33
33
  return TypeAdapter(list[model])
34
34
 
35
+
35
36
  @lru_cache(maxsize=None)
36
37
  def _reduced_model(entity: Type[Base], columns: frozenset[str]) -> Type[BaseModel]:
37
38
  """Modello ridotto alle colonne indicate, costruito una volta per combinazione.
@@ -129,9 +130,6 @@ class CrudRepository[Entity: Base | Type[Base]]:
129
130
 
130
131
  # -------------------------
131
132
 
132
-
133
-
134
-
135
133
  def _retrieve_parsing_model(self, columns=None, exclude_columns=None):
136
134
  selected_columns = set(columns) if columns else set(inspect(self.entity).columns.keys())
137
135
  if exclude_columns:
@@ -713,7 +711,7 @@ class CrudRepository[Entity: Base | Type[Base]]:
713
711
  entities = self.execute(session, stmt)
714
712
 
715
713
  len_entities = len(entities)
716
- if limit == 0 or (len_entities < limit and page == 1):
714
+ if limit == 0 or limit is None or (len_entities < limit and page == 1):
717
715
  count_ = len_entities
718
716
  elif limit > len_entities > 0 and page > 1:
719
717
  count_ = (page - 1) * limit + len_entities
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-general-be-lib
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: General purpose backend library — SQLAlchemy CRUD/Geometry repositories, FastAPI exceptions, Pydantic base models, logger utilities.
5
5
  Author-email: Andrea Di Placido <a.diplacido@arpes.it>, "Arpes S.r.l." <it.admin@arpes.it>
6
6
  License: MIT
@@ -13,7 +13,7 @@ general/interface/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
13
13
  general/interface/metadata/crud_metadata.py,sha256=BFohkkpUd7w211NYqAD20X4ZpovrXH7BERA1_Rs4Dv0,23291
14
14
  general/interface/metadata/geom_metadata.py,sha256=J5SMXMiDUXnzt7bNH12LIQO6S7jcLNf7Cm4CdLXv8Lg,12255
15
15
  general/interface/repository/__init__.py,sha256=EcRukwf61Ua-9-JfM_ingVv1wXNRV8HBrrWwjj8m23w,136
16
- general/interface/repository/crud_repository.py,sha256=kFDEWw2zCMR4kkJTZKT1ndeAlfq9nW_fvotJB05C344,39725
16
+ general/interface/repository/crud_repository.py,sha256=AdnI5nFb0G0V4eTIjXALTVvJ5aiV50xpI0pIh1S9S2w,39740
17
17
  general/interface/repository/geometry_repository.py,sha256=WUnYOr0YOKNt7_lBa5HlbkGAkYuAaSrXqK7i0BQOctw,12101
18
18
  general/interface/repository/many_to_many_repository.py,sha256=ZyuK2fk5ZI9xE8xhZwk5Vb1QItnOxwEF5CGsemnMdn8,9197
19
19
  general/interface/repository/view_repository.py,sha256=ZqekhnSvHH_CJFb546tjUwnwGbwzyxZMx-f7yUvOl50,6206
@@ -25,8 +25,8 @@ general/interface/repository/handler/json_handler.py,sha256=XNAgIkUGQX8ttTsqtqE8
25
25
  general/interface/repository/handler/json_ilike_handler.py,sha256=NXqcS1YOtcOStdl7sp2cYqFMkEdcxoVmaNJewJEzL3M,4738
26
26
  general/interface/repository/handler/or_handler.py,sha256=hZ4Nc-nTi7Nh-krPUIlyCEg3q6H0D96T_oMVAzxezKY,4839
27
27
  general/interface/repository/handler/statement_manager.py,sha256=yCMR1vNnXYmmY4HwI2CDZLI513GzyVZniN31QJFGKKA,7080
28
- python_general_be_lib-0.8.2.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
29
- python_general_be_lib-0.8.2.dist-info/METADATA,sha256=K6q4fRebfmJK4DPgzsRpaLw5qFPfTT9tW5jmmQs6xyo,2962
30
- python_general_be_lib-0.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- python_general_be_lib-0.8.2.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
32
- python_general_be_lib-0.8.2.dist-info/RECORD,,
28
+ python_general_be_lib-0.8.3.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
29
+ python_general_be_lib-0.8.3.dist-info/METADATA,sha256=Kjj0vny9_DD5ICWvqKD2NLUl7b6n3p-lkn7_g8ixYIw,2962
30
+ python_general_be_lib-0.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ python_general_be_lib-0.8.3.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
32
+ python_general_be_lib-0.8.3.dist-info/RECORD,,