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 67f09f9 commit 2b8ec05Copy full SHA for 2b8ec05
core/settings.py
@@ -62,6 +62,8 @@ def __new__(cls, *args, **kwargs):
62
return cls.__instance
63
64
def __setattr__(self, key, value):
65
+ if not key.startswith('opendal_') and type(value) == str and value.isnumeric():
66
+ value = int(value)
67
self.__dict__[key] = value
68
with open(env_path, 'w', encoding='utf-8') as f:
69
for key, value in self.__dict__.items():
0 commit comments