From 2b8ec05c1fd3d6beb8c9845e1fc59f4259c7f632 Mon Sep 17 00:00:00 2001 From: lan Date: Sun, 24 Sep 2023 19:43:18 +0800 Subject: [PATCH] fix:issue #96 --- core/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/settings.py b/core/settings.py index f6f2a92..01f75e5 100644 --- a/core/settings.py +++ b/core/settings.py @@ -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():