Skip to content

Commit 2c8ba7b

Browse files
authored
Merge pull request #3 from bsgip/addedversion
Added version to server info
2 parents 483f53a + 019c80b commit 2c8ba7b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/cactus_client_notifications/server/handler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import http
22
import logging
3+
from importlib.metadata import version
34

45
from aiohttp import ContentTypeError, web
56

@@ -20,6 +21,8 @@
2021
APPKEY_SERVER_STATS,
2122
)
2223

24+
VERSION = version("cactus_client_notifications")
25+
2326
logger = logging.getLogger(__name__)
2427

2528

@@ -260,7 +263,7 @@ async def get_manage_server(request: web.Request) -> web.Response:
260263

261264
sep = "-" * 40
262265
lines: list[str] = [
263-
"CACTUS Client Notifications Server",
266+
f"CACTUS Client Notifications Server {VERSION}",
264267
sep,
265268
"SETTINGS",
266269
f"Started: {stats.created_at.isoformat()}",

0 commit comments

Comments
 (0)