From 22d54f4e369aea8bdb2b14971b36106511447380 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Thu, 24 Oct 2024 16:18:15 +0900 Subject: [PATCH] fix(agents): Fetching existing agents with additional post type filter --- backend/src/utils/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/utils/agent.py b/backend/src/utils/agent.py index 8a5af7a..82ddf43 100644 --- a/backend/src/utils/agent.py +++ b/backend/src/utils/agent.py @@ -10,6 +10,7 @@ async def fetch_agents(ids: list[str] | None = None) -> list[FetchedAgent]: async with AlephHttpClient(api_server=config.ALEPH_API_URL) as client: result = await client.get_posts( post_filter=PostFilter( + types=[config.ALEPH_AGENT_POST_TYPE], addresses=[config.ALEPH_SENDER], tags=ids, channels=[config.ALEPH_CHANNEL],