clear-skies 1.16.9__py3-none-any.whl → 1.16.10__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 clear-skies might be problematic. Click here for more details.
- {clear_skies-1.16.9.dist-info → clear_skies-1.16.10.dist-info}/METADATA +1 -1
- {clear_skies-1.16.9.dist-info → clear_skies-1.16.10.dist-info}/RECORD +6 -6
- clearskies/handlers/get.py +5 -2
- clearskies/handlers/update.py +5 -2
- {clear_skies-1.16.9.dist-info → clear_skies-1.16.10.dist-info}/LICENSE +0 -0
- {clear_skies-1.16.9.dist-info → clear_skies-1.16.10.dist-info}/WHEEL +0 -0
|
@@ -129,7 +129,7 @@ clearskies/handlers/exceptions/authorization.py,sha256=14JuU5zLEf2sv82VNxsJt7dGS
|
|
|
129
129
|
clearskies/handlers/exceptions/client_error.py,sha256=o1OGnjlXT5zZ1Vb2LTRPYIio0YAnXPpXDGuqSLQP9_Y,39
|
|
130
130
|
clearskies/handlers/exceptions/input_error.py,sha256=kmEVv9LNIalLKD9GF-olsD39Z94abHGkB54NskOG6g4,136
|
|
131
131
|
clearskies/handlers/exceptions/not_found.py,sha256=xThOXiMfyYBaI2bhfOhpVoZ_vdw1hU8A_HxHenPqHzo,96
|
|
132
|
-
clearskies/handlers/get.py,sha256=
|
|
132
|
+
clearskies/handlers/get.py,sha256=_5aPwwgSTWKIPk1E5C6fr1hq0WJz0yrNl4Dtnt4e4sk,6629
|
|
133
133
|
clearskies/handlers/health_check.py,sha256=m6H3psUql-I7hZao3fsxjrZnCjFJZ1ROTF-41g8Syww,2078
|
|
134
134
|
clearskies/handlers/input_processing.py,sha256=3CurzTyOsOqfmBZPWm5Sa5UjH7Bl7PkxP6obRieigGs,3250
|
|
135
135
|
clearskies/handlers/list.py,sha256=bA1NG799Ru5QKoGzpsKZIjb5YwD5ZyJUv1rJL3uU-PA,22942
|
|
@@ -141,7 +141,7 @@ clearskies/handlers/schema_helper.py,sha256=62644USvFlZu_6tT7rb-k6t_5J3Q0uZsJwP5
|
|
|
141
141
|
clearskies/handlers/simple_routing.py,sha256=8T4eKLIurZO3ZdIPgi-0pypQp_X4BKkbet_Ymba5br4,9332
|
|
142
142
|
clearskies/handlers/simple_routing_route.py,sha256=0WPKrneXjbI98UOsDaZgf-OUvEd4D6gG-oIiMiiCp-k,7312
|
|
143
143
|
clearskies/handlers/simple_search.py,sha256=19dOZyPXx_PMrlUCe-hoY8y3h9BNfAjAkVoxsjUl7gw,3965
|
|
144
|
-
clearskies/handlers/update.py,sha256=
|
|
144
|
+
clearskies/handlers/update.py,sha256=sU91QLvtQL8qfLQZWHep6oAChxvZ6EIP-YQfEPNxtG0,3585
|
|
145
145
|
clearskies/handlers/write.py,sha256=VduGtjnFMQOvo3l0t-tUP4PExPJ9JEpuziHsquF08rE,9344
|
|
146
146
|
clearskies/input_outputs/__init__.py,sha256=mQWL-u41FRTrPGuHe8FhLmcHjAEaUxjFwUf7RgDcbAs,182
|
|
147
147
|
clearskies/input_outputs/cli.py,sha256=AOCXpjjFM7F9PJiW_UOI8fTU0gswO0Lul5xSo7ujRPs,6203
|
|
@@ -183,7 +183,7 @@ clearskies/tests/simple_api/models/__init__.py,sha256=nUA0W6fgXw_Bxa9CudkaDkC80t
|
|
|
183
183
|
clearskies/tests/simple_api/models/status.py,sha256=PEhPbaQh5qdUNHp8O0gz91LOLENAEBtqSaHxUPXchaM,699
|
|
184
184
|
clearskies/tests/simple_api/models/user.py,sha256=5_P4Tp1tTdX7PkMJ__epPM5MA7JAeVYGas69vcWloLc,819
|
|
185
185
|
clearskies/tests/simple_api/users_api.py,sha256=KYXCgEofDxHeRdQK67txN5oYUPvxxmB8JTku7L-apk4,2344
|
|
186
|
-
clear_skies-1.16.
|
|
187
|
-
clear_skies-1.16.
|
|
188
|
-
clear_skies-1.16.
|
|
189
|
-
clear_skies-1.16.
|
|
186
|
+
clear_skies-1.16.10.dist-info/LICENSE,sha256=3Ehd0g3YOpCj8sqj0Xjq5qbOtjjgk9qzhhD9YjRQgOA,1053
|
|
187
|
+
clear_skies-1.16.10.dist-info/METADATA,sha256=Q-PsjMRYiUkWRc-WQ9bs24RQkyJu3bDydWFxSBB9Iqw,1367
|
|
188
|
+
clear_skies-1.16.10.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
189
|
+
clear_skies-1.16.10.dist-info/RECORD,,
|
clearskies/handlers/get.py
CHANGED
|
@@ -27,9 +27,12 @@ class Get(Base):
|
|
|
27
27
|
|
|
28
28
|
def fetch_model(self, input_output):
|
|
29
29
|
routing_data = input_output.routing_data()
|
|
30
|
-
if self.id_column_name
|
|
30
|
+
if self.id_column_name in routing_data:
|
|
31
|
+
id = routing_data[self.id_column_name]
|
|
32
|
+
elif "id" in routing_data:
|
|
33
|
+
id = routing_data["id"]
|
|
34
|
+
else:
|
|
31
35
|
raise ValueError("I didn't receive the ID in my routing data. I am probably misconfigured.")
|
|
32
|
-
id = routing_data[self.id_column_name]
|
|
33
36
|
models = self._model.where(f"{self.id_column_name}={id}")
|
|
34
37
|
for where in self.configuration("where"):
|
|
35
38
|
if type(where) == str:
|
clearskies/handlers/update.py
CHANGED
|
@@ -22,9 +22,12 @@ class Update(Write):
|
|
|
22
22
|
def handle(self, input_output):
|
|
23
23
|
input_data = self.request_data(input_output)
|
|
24
24
|
routing_data = input_output.routing_data()
|
|
25
|
-
if self.id_column_name
|
|
25
|
+
if self.id_column_name in routing_data:
|
|
26
|
+
model_id = routing_data[self.id_column_name]
|
|
27
|
+
elif "id" in routing_data:
|
|
28
|
+
model_id = routing_data["id"]
|
|
29
|
+
else:
|
|
26
30
|
raise ValueError("I didn't receive the ID in my routing data. I am probably misconfigured.")
|
|
27
|
-
model_id = routing_data[self.id_column_name]
|
|
28
31
|
id_column_name = self.id_column_name
|
|
29
32
|
models = self._model.where(f"{id_column_name}={model_id}")
|
|
30
33
|
for where in self.configuration("where"):
|
|
File without changes
|
|
File without changes
|