We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ee091 commit f9c7818Copy full SHA for f9c7818
core/api.py
@@ -1,11 +1,13 @@
1
from core.orm import *
2
from aiohttp import web
3
-from core.cluster import VERSION, API_VERSION
+from core.config import Config
4
+import toml
5
import os
6
import platform
7
import psutil
8
-
9
+API_VERSION = Config.get("advanced.api_version")
10
+VERSION = toml.loads(open("pyproject.toml", "r").read())["tool"]["poetry"]["version"]
11
async def getStatus(cluster) -> web.Response:
12
hourly_hits = getHourlyHits()
13
daily_hits = getDailyHits()
0 commit comments