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 3f7b067 commit fcac01dCopy full SHA for fcac01d
omymodels/from_ddl.py
@@ -172,9 +172,17 @@ def prepare_data(item: Dict) -> Dict:
172
item[key] = clean_value(value)
173
elif isinstance(value, dict):
174
value = prepare_data(value)
175
+ else:
176
+ item[key] = format_to_py_var(value)
177
return item
178
179
180
+def format_to_py_var(value: str) -> str:
181
+ if value in ["false", "true"]:
182
+ return value.capitalize()
183
+ return value
184
+
185
186
def clean_value(string: str) -> str:
187
string = string.replace('"', "")
188
if string.startswith("[") and string.endswith("]"):
0 commit comments