internal 1.0.26__py3-none-any.whl → 1.0.28__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 internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -55,8 +55,12 @@ class BaseFactory(metaclass=ABCMeta):
55
55
  if title is None:
56
56
  title = self.DEFAULT_APP_NAME
57
57
 
58
- app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title, debug=self.get_app_config().DEBUG,
59
- version=self.API_VERSION)
58
+ if self.get_app_config().DEBUG:
59
+ app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title,
60
+ debug=self.get_app_config().DEBUG, version=self.API_VERSION)
61
+ else:
62
+ app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title,
63
+ debug=self.get_app_config().DEBUG, version=self.API_VERSION, docs_url=None, redoc_url=None)
60
64
 
61
65
  origins = ["*"]
62
66
 
@@ -24,9 +24,10 @@ async def async_response(data=None, message=None, code=None, page_no=None, total
24
24
  field_type = getattr(data, field_name)
25
25
  if isinstance(field_type, Link):
26
26
  link_field_list.append(field_name)
27
+
27
28
  if isinstance(field_type, datetime):
28
29
  datetime_field_list.append(field_name)
29
- if isinstance(field_type, date):
30
+ elif isinstance(field_type, date):
30
31
  date_field_list.append(field_name)
31
32
 
32
33
  data = json.loads(data.model_dump_json(exclude="password", by_alias=False))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.26
3
+ Version: 1.0.28
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=5-s2muyaLOGKhrq8kVqq0qaXFD09FrcQZCAFmw1FQtk,1755
3
- internal/base_factory.py,sha256=OeSgcQgObjYkLMjgG8LY4V2QDRd0esL1riQxg8cxnsk,8147
3
+ internal/base_factory.py,sha256=ZQtT0mFwzZGzvLmQ4n8yZXUFhEjFvnY8EA4Yx975lPU,8414
4
4
  internal/common_enum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  internal/common_enum/contact_type.py,sha256=7QkTQ71UxpaT1YHI40FpjmLz3r-UbRU-sd0m5ajH1as,142
6
6
  internal/common_enum/description_type.py,sha256=kGwkFQh6dMnjDl6ipWYpA-qbNRrhEpnPq3NleTsNwwk,118
@@ -18,7 +18,7 @@ internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbsw
18
18
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
19
19
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  internal/http/requests.py,sha256=4Mdu_HIGDEgpgey8IPusqBn9s-3-oYGU0S49NK-khc4,1821
21
- internal/http/responses.py,sha256=jwK-e9ZBz5F_bvhf5fDQgsFxoe6mwzE0uUdP6UjqL7c,2538
21
+ internal/http/responses.py,sha256=SV9TZPNXZnzvPjEtvuHWcZT9tgY0U7N0H3P6fOZlWHk,2541
22
22
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
24
24
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -27,6 +27,6 @@ internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  internal/model/base_model.py,sha256=Oc33c8AnPQcJEiEMQM_g3KT1b7iaa1IxgBMavds-_Ns,3010
28
28
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
29
29
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
30
- internal-1.0.26.dist-info/METADATA,sha256=gkxG2h3IJydAUghONLiE0Jm1fl5RVOBCvLRVl6PVbQk,625
31
- internal-1.0.26.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- internal-1.0.26.dist-info/RECORD,,
30
+ internal-1.0.28.dist-info/METADATA,sha256=QRnGEk5WVHvIER97L-bIb85O8y6r2cp3oPns5-3PhbM,625
31
+ internal-1.0.28.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ internal-1.0.28.dist-info/RECORD,,