Skip to content

Commit afbe5af

Browse files
authored
Fix: Solve metrics.json issue after pydantic migration with a non pydantic class. (#778)
1 parent 17735a6 commit afbe5af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/aleph/web/controllers/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ async def metrics_json(request: web.Request) -> web.Response:
7676

7777
with session_factory() as session:
7878
return web.Response(
79-
text=(
80-
await get_metrics(session=session, node_cache=node_cache)
81-
).model_dump_json(),
79+
text=(await get_metrics(session=session, node_cache=node_cache)).to_json(),
8280
content_type="application/json",
8381
)
8482

0 commit comments

Comments
 (0)