(key: str, revision: int)
| 108 | """ |
| 109 | |
| 110 | def get_doc(key: str, revision: int) -> dict: |
| 111 | if revision == 0: |
| 112 | return {"key": key, "type": {"key": "/type/delete"}} |
| 113 | else: |
| 114 | return web.ctx.site.get(key, revision).dict() |
| 115 | |
| 116 | site = web.ctx.site |
| 117 | docs = [get_doc(c["key"], c["revision"] - 1) for cid in changeset_ids for c in site.get_change(cid).changes] |
no test coverage detected