We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2015c commit 667cb06Copy full SHA for 667cb06
tifeatures/dbmodel.py
@@ -18,6 +18,9 @@ def json_type(self) -> str:
18
"""Return JSON field type."""
19
pgtype = self.type
20
21
+ if pgtype.endswith("[]"):
22
+ return "array"
23
+
24
if any(
25
[
26
pgtype.startswith("int"),
@@ -30,9 +33,6 @@ def json_type(self) -> str:
30
33
if pgtype.startswith("bool"):
31
34
return "boolean"
32
35
- if pgtype.endswith("[]"):
- return "array"
-
36
if any([pgtype.startswith("json"), pgtype.startswith("geo")]):
37
return "object"
38
0 commit comments