internal 1.0.0__py3-none-any.whl → 1.0.1__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.

@@ -28,12 +28,13 @@ async def async_response(data=None, message=None, code=None, page_no=None, total
28
28
  return JSONResponse(status_code=data.status_code, content=data.json())
29
29
 
30
30
  ret = {}
31
- data = jsonable_encoder(data)
32
31
  if isinstance(data, list):
33
32
  data = [_serialize(d) for d in data]
34
33
  else:
35
34
  data = _serialize(data)
36
35
 
36
+ data = jsonable_encoder(data)
37
+
37
38
  ret['code'] = code or "ok"
38
39
 
39
40
  ret['message'] = message or "success"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -17,13 +17,13 @@ internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbsw
17
17
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
18
18
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  internal/http/requests.py,sha256=C2MfPaRcFuF8p52aPwtOyzXQEVu5MWMY8UUCrggxONw,1675
20
- internal/http/responses.py,sha256=vTfc1pmnRPo_b1ayCNGOPgpslB6pmnxsbexIDBt1XW0,1670
20
+ internal/http/responses.py,sha256=Roabm-bPYvYpu7dHIegBxoueCT-XHGeYdT9BrqVG07w,1671
21
21
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
23
23
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  internal/model/base_model.py,sha256=svULVdROpcnmTyhIbZ7M6pn40vhb_qIZ5W2CEyuEWZE,3002
25
25
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
26
26
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
27
- internal-1.0.0.dist-info/METADATA,sha256=_jL1Wwr7CV3yoMPJvcMpUMU4Nc6_jRBw2JJYs3F7iW0,624
28
- internal-1.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
- internal-1.0.0.dist-info/RECORD,,
27
+ internal-1.0.1.dist-info/METADATA,sha256=If3NJ2J5c2yzOLDWXUSYworxLRzPFxyfs6r3jGc4TqU,624
28
+ internal-1.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
+ internal-1.0.1.dist-info/RECORD,,