mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
go through smoke test of all API (#12)
* add field progress msg into docinfo; add file processing procedure * go through upload, create kb, add doc to kb * smoke test for all API * smoke test for all API
This commit is contained in:
@ -14,9 +14,9 @@ class Config:
|
||||
self.env = env
|
||||
if env == "spark":CF.read("./cv.cnf")
|
||||
|
||||
def get(self, key):
|
||||
def get(self, key, default=None):
|
||||
global CF
|
||||
return CF.get(self.env, key)
|
||||
return CF[self.env].get(key, default)
|
||||
|
||||
def init(env):
|
||||
return Config(env)
|
||||
|
||||
Reference in New Issue
Block a user