mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
format code (#14)
This commit is contained in:
@ -16,7 +16,9 @@ class Config:
|
||||
|
||||
def get(self, key, default=None):
|
||||
global CF
|
||||
return CF[self.env].get(key, default)
|
||||
return os.environ.get(key.upper(), \
|
||||
CF[self.env].get(key, default)
|
||||
)
|
||||
|
||||
def init(env):
|
||||
return Config(env)
|
||||
|
||||
Reference in New Issue
Block a user