Update version display on web UI (#3405)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Refactoring

---------

Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2024-11-14 17:51:21 +08:00
committed by GitHub
parent 30f6421760
commit e4c4fdabbd
4 changed files with 28 additions and 30 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from api.versions import get_versions
from api.versions import get_ragflow_version
from .reload_config_base import ReloadConfigBase
@ -35,7 +35,7 @@ class RuntimeConfig(ReloadConfigBase):
@classmethod
def init_env(cls):
cls.ENV.update(get_versions())
cls.ENV.update({"version": get_ragflow_version()})
@classmethod
def load_config_manager(cls):