From c459dbf29e748b5c8dd7d460d21ef19780bd6986 Mon Sep 17 00:00:00 2001 From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:28:35 +0200 Subject: [PATCH] fix(mymdc): add proposal id extraction from experiment section --- src/zulip_write_only_proxy/routers/mymdc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zulip_write_only_proxy/routers/mymdc.py b/src/zulip_write_only_proxy/routers/mymdc.py index 32af94ec..98281b24 100644 --- a/src/zulip_write_only_proxy/routers/mymdc.py +++ b/src/zulip_write_only_proxy/routers/mymdc.py @@ -43,6 +43,7 @@ async def check_and_proxy_request( res_proposal_id = ( content.get("proposal_id") + or content.get("experiment", {}).get("proposal_id") or content.get("proposal", {}).get("id") or content.get("id") )