mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-29 20:27:01 +08:00
fix:issue #96
This commit is contained in:
1 parent
67f09f9b81
commit
2b8ec05c1f
1 file changed
+2
@@ -62,6 +62,8 @@ class Settings:
|
||||
return cls.__instance
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if not key.startswith('opendal_') and type(value) == str and value.isnumeric():
|
||||
value = int(value)
|
||||
self.__dict__[key] = value
|
||||
with open(env_path, 'w', encoding='utf-8') as f:
|
||||
for key, value in self.__dict__.items():
|
||||
|
||||
Reference in new issue
Block a user