There was an error while loading. Please reload this page.
2 parents 483f53a + 019c80b commit 2c8ba7bCopy full SHA for 2c8ba7b
1 file changed
src/cactus_client_notifications/server/handler.py
@@ -1,5 +1,6 @@
1
import http
2
import logging
3
+from importlib.metadata import version
4
5
from aiohttp import ContentTypeError, web
6
@@ -20,6 +21,8 @@
20
21
APPKEY_SERVER_STATS,
22
)
23
24
+VERSION = version("cactus_client_notifications")
25
+
26
logger = logging.getLogger(__name__)
27
28
@@ -260,7 +263,7 @@ async def get_manage_server(request: web.Request) -> web.Response:
260
263
261
264
sep = "-" * 40
262
265
lines: list[str] = [
- "CACTUS Client Notifications Server",
266
+ f"CACTUS Client Notifications Server {VERSION}",
267
sep,
268
"SETTINGS",
269
f"Started: {stats.created_at.isoformat()}",
0 commit comments