Skip to content

Commit 6fe7d6b

Browse files
committed
fix prom client import
1 parent 86ccf5d commit 6fe7d6b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/common/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from .siibra_api_typing import ROLE_TYPE
2-
from api.common import logger
2+
from api.common.logger import logger
33
from functools import wraps, partial
44
import inspect
55
import asyncio

requirements/server.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ uvicorn[standard]
88
redis
99
diskcache
1010
celery[redis]==5.2.6
11-
prometheus-client
11+
prometheus-client<0.22.0
12+
# https://github.com/prometheus/client_python/commit/33e682846b2d8f60ea34fc60c41b448b22405c4a
13+
# broke import, thus pinning to <0.22.0. not broken why fix it?

0 commit comments

Comments
 (0)