Whether the code is paired on `channel`, to whom, and whether it was revoked.
(code: str, channel: Channel)
| 489 | |
| 490 | |
| 491 | async def _status(code: str, channel: Channel) -> dict: |
| 492 | """Whether the code is paired on `channel`, to whom, and whether it was revoked.""" |
| 493 | r = await get_redis() |
| 494 | return { |
| 495 | "code": code, |
| 496 | "linked": bool(await r.get(_bind_key(code, channel))), |
| 497 | "name": await r.get(_name_key(code, channel)), |
| 498 | "revoked": bool(await r.exists(_revoked_key(code))), |
| 499 | } |
| 500 | |
| 501 | |
| 502 | async def _deliver(channel: Channel, address: str, text: str, images: list[str]) -> None: |
no test coverage detected