Skip to content

Commit f9c7818

Browse files
committed
fix: 修复漏洞
1 parent d5ee091 commit f9c7818

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from core.orm import *
22
from aiohttp import web
3-
from core.cluster import VERSION, API_VERSION
3+
from core.config import Config
4+
import toml
45
import os
56
import platform
67
import psutil
78

8-
9+
API_VERSION = Config.get("advanced.api_version")
10+
VERSION = toml.loads(open("pyproject.toml", "r").read())["tool"]["poetry"]["version"]
911
async def getStatus(cluster) -> web.Response:
1012
hourly_hits = getHourlyHits()
1113
daily_hits = getDailyHits()

0 commit comments

Comments
 (0)