def get_block_by_id()

in shared/openai-slackbot/openai_slackbot/utils/slack.py [0:0]


def get_block_by_id(blocks: t.Dict, block_id: str) -> t.Dict:
    for block in blocks:
        if block.get("block_id") == block_id:
            return block
    return {}