square-administration 1.1.0__py3-none-any.whl → 1.2.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.
@@ -20,6 +20,7 @@ app = FastAPI()
20
20
 
21
21
  app.add_middleware(
22
22
  CORSMiddleware,
23
+ allow_credentials=True,
23
24
  allow_origins=["*"],
24
25
  allow_methods=["*"],
25
26
  allow_headers=["*"],
@@ -99,7 +99,8 @@ async def get_all_greetings_v0(
99
99
  ]
100
100
  for x in user_credentials_response
101
101
  }
102
- main = [
102
+ response_clone = response
103
+ response_clone["data"]["main"] = [
103
104
  {
104
105
  **greeting,
105
106
  UserCredential.user_credential_username.name: user_credentials_map.get(
@@ -114,7 +115,7 @@ async def get_all_greetings_v0(
114
115
  """
115
116
  output_content = get_api_output_in_standard_format(
116
117
  message=messages["GENERIC_READ_SUCCESSFUL"],
117
- data={"main": main},
118
+ data=response_clone["data"],
118
119
  )
119
120
  return JSONResponse(
120
121
  status_code=status.HTTP_200_OK,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square-administration
3
- Version: 1.1.0
3
+ Version: 1.2.1
4
4
  Summary: common business layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_administration
6
6
  Author: thePmSquare
@@ -42,6 +42,14 @@ pip install square_administration
42
42
 
43
43
  ## changelog
44
44
 
45
+ ### v1.2.1
46
+
47
+ - fix bug in core -> get_all_greetings_v0, now sending full response instead of only main.
48
+
49
+ ### v1.2.0
50
+
51
+ - set allow_credentials=True.
52
+
45
53
  ### v1.1.0
46
54
 
47
55
  - add core -> get_all_greetings_v0.
@@ -1,6 +1,6 @@
1
1
  square_administration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  square_administration/configuration.py,sha256=ldSmVp3FWOndN4u-dH-pf4i0olRZx1-uORJAj1qW-g8,4733
3
- square_administration/main.py,sha256=H6YJ-PjqVKqj8Odot4jAHg02aAlYbuamHWmXKXy2aAk,1650
3
+ square_administration/main.py,sha256=L4MM_7yimRLB8J1ltgXPnrN3j_UXKVtp8o8S46MSqrY,1678
4
4
  square_administration/messages.py,sha256=93dzwW2J3romvGl66OGBt3z2ueGnInMz28pem9egnaw,984
5
5
  square_administration/data/config.ini,sha256=NMpUnBSPEdwCW1Y-z5DOjpTQgXGjt4ZcqP4QQiAXr_U,997
6
6
  square_administration/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -8,9 +8,9 @@ square_administration/pydantic_models/authentication.py,sha256=DWXctw5UWzkSVY7nM
8
8
  square_administration/pydantic_models/core.py,sha256=HUMrBmfKrXeL-126gE5j2povdVmktn8XLg2tHEdeXTk,344
9
9
  square_administration/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  square_administration/routes/authentication.py,sha256=26PjMeyj4UYk3hcK0rLmBQi4tHYfK2a14gtAx7jcy2E,7046
11
- square_administration/routes/core.py,sha256=PTEI1zAGwBrr4EskUjE0WfJaBucZ1r11KRi5nzW3Iys,5306
11
+ square_administration/routes/core.py,sha256=65_FIZilintZvbHx7r25UQbgN-oKdQ92-Nv3kpwKX6s,5374
12
12
  square_administration/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- square_administration-1.1.0.dist-info/METADATA,sha256=Rp0wpauOQ9OlTnROgskdH0MXatbjTBkfyL9Ho2hsMNc,1254
14
- square_administration-1.1.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
15
- square_administration-1.1.0.dist-info/top_level.txt,sha256=8WFipDrMQUPRDo5AvipxU1YK3wZtWZyCUMWaR416zAw,22
16
- square_administration-1.1.0.dist-info/RECORD,,
13
+ square_administration-1.2.1.dist-info/METADATA,sha256=xMda9gwxih9fLwxA97FrZo7DBLpWpYutsD7W-JAW87U,1401
14
+ square_administration-1.2.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
15
+ square_administration-1.2.1.dist-info/top_level.txt,sha256=8WFipDrMQUPRDo5AvipxU1YK3wZtWZyCUMWaR416zAw,22
16
+ square_administration-1.2.1.dist-info/RECORD,,