From a6e2634bb78094847108cd81de3686dd4173e6fb Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 17 Apr 2022 22:24:16 -0500 Subject: [PATCH] Fix Python bug in v1 verify worklist generation --- disk_jumble/src/disk_jumble/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index 063eef5..6b314fd 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -157,7 +157,7 @@ def _get_v1_worklist(conn, disk_id: int, block_ranges: List[NumericRange]) -> Li raise NotImplementedError("verify of encrypted data") for (piece_num, piece_rows) in itertools.groupby(rows, lambda t: t[0]): - block_ranges = [range(r.lower, r.upper) for (r, _) in piece_rows] + block_ranges = [range(r.lower, r.upper) for (_, r, _) in piece_rows] run = _V1Run( entity_id = info.id, entity_length = info.length, -- 2.30.2