polyapi-python 0.3.11.dev4__py3-none-any.whl → 0.3.12.dev1__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.
- polyapi/poly_tables.py +2 -2
- {polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/METADATA +1 -1
- {polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/RECORD +6 -6
- {polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/WHEEL +0 -0
- {polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/licenses/LICENSE +0 -0
- {polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/top_level.txt +0 -0
polyapi/poly_tables.py
CHANGED
|
@@ -315,7 +315,7 @@ class {table_name}:{table_description}
|
|
|
315
315
|
@staticmethod
|
|
316
316
|
def update_one(*args, **kwargs) -> {table_name}Row:
|
|
317
317
|
if args:
|
|
318
|
-
if len(args) != 2 or
|
|
318
|
+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
|
|
319
319
|
raise TypeError("Expected id and query as arguments or as kwargs")
|
|
320
320
|
query = args[1]
|
|
321
321
|
if not isinstance(query["where"], dict):
|
|
@@ -356,7 +356,7 @@ class {table_name}:{table_description}
|
|
|
356
356
|
@staticmethod
|
|
357
357
|
def delete_one(*args, **kwargs) -> PolyDeleteResult:
|
|
358
358
|
if args:
|
|
359
|
-
if len(args) != 2 or
|
|
359
|
+
if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
|
|
360
360
|
raise TypeError("Expected id and query as arguments or as kwargs")
|
|
361
361
|
query = args[1]
|
|
362
362
|
if not isinstance(query["where"], dict):
|
|
@@ -14,7 +14,7 @@ polyapi/function_cli.py,sha256=W30yL2i152iZCr6zAU1CHKlDp_tt7kB2cGIXIxmWumk,4302
|
|
|
14
14
|
polyapi/generate.py,sha256=0zVDEnKVZnbMNZ6O0SWAuDLHrBrkW01vFkjpf9wrQZo,21046
|
|
15
15
|
polyapi/parser.py,sha256=IVSJGT6wcxpXUHmhx4DVhOGL1XY_MBaf5aw3Pd2DVcI,20935
|
|
16
16
|
polyapi/poly_schemas.py,sha256=fZ6AGvHcOKQJtlrzSuzeBNed5DxPMA2dJGdJvuFCHWM,9066
|
|
17
|
-
polyapi/poly_tables.py,sha256=
|
|
17
|
+
polyapi/poly_tables.py,sha256=SrByuusS1aL7L7R8o28TEr4A-8AfMGGHCKLg-9vmnxc,18783
|
|
18
18
|
polyapi/prepare.py,sha256=NQzpMIoakNovStvOGOmqSYIpTwiWXaweNSE9se10A2E,7420
|
|
19
19
|
polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
polyapi/rendered_spec.py,sha256=nJEj2vRgG3N20fU4s-ThRtOIwAuTzXwXuOBIkXljDVc,2240
|
|
@@ -25,8 +25,8 @@ polyapi/typedefs.py,sha256=mfll-KrngOW0wzbvDNiIDaDkFMwbsT-MY5y5hzWj9RE,5642
|
|
|
25
25
|
polyapi/utils.py,sha256=Ca189i4PM4TpwvpzwF3T8MfQsOPD45b_falXjjgYCyI,12603
|
|
26
26
|
polyapi/variables.py,sha256=SJv106ePpQP5mx7Iiafl_shtFlE8FoaO9Q8lvw-3IRg,7270
|
|
27
27
|
polyapi/webhook.py,sha256=I3_uOl4f4L2-2WehzRLMVMRrB-76EiXCPA9Vzoaj30I,5326
|
|
28
|
-
polyapi_python-0.3.
|
|
29
|
-
polyapi_python-0.3.
|
|
30
|
-
polyapi_python-0.3.
|
|
31
|
-
polyapi_python-0.3.
|
|
32
|
-
polyapi_python-0.3.
|
|
28
|
+
polyapi_python-0.3.12.dev1.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
|
|
29
|
+
polyapi_python-0.3.12.dev1.dist-info/METADATA,sha256=SXeGR8BDNTXivIfKwJaAPVa2DF2yTSV086lY0nBIW7k,5318
|
|
30
|
+
polyapi_python-0.3.12.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
polyapi_python-0.3.12.dev1.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
32
|
+
polyapi_python-0.3.12.dev1.dist-info/RECORD,,
|
|
File without changes
|
{polyapi_python-0.3.11.dev4.dist-info → polyapi_python-0.3.12.dev1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|