konecty-sdk-python 1.2.0__tar.gz → 1.2.1__tar.gz

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.
@@ -75,7 +75,8 @@ async def fill_settings(settings_class: Type[T]) -> T:
75
75
  [field.upper() for field in fields_to_fetch]
76
76
  )
77
77
 
78
- for field_name, value in konecty_settings.items():
78
+ for field_name in settings_class.model_fields.keys():
79
+ value = konecty_settings.get(field_name.upper())
79
80
  if value is not None and value.strip():
80
81
  field_type = settings_class.model_fields[field_name].annotation
81
82
  converted_value = _convert_value(value, field_type)
@@ -120,7 +121,8 @@ def fill_settings_sync(settings_class: Type[T]) -> T:
120
121
  [field.upper() for field in fields_to_fetch]
121
122
  )
122
123
 
123
- for field_name, value in konecty_settings.items():
124
+ for field_name in settings_class.model_fields.keys():
125
+ value = konecty_settings.get(field_name.upper())
124
126
  if value is not None and value.strip():
125
127
  field_type = settings_class.model_fields[field_name].annotation
126
128
  converted_value = _convert_value(value, field_type)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: konecty_sdk_python
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Konecty SDK Python
5
5
  Author-email: Leonardo Leal <leonardo.leal@konecty.com>, Derotino Silveira <derotino.silveira@konecty.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "konecty_sdk_python"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "Konecty SDK Python"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"