From: Jakob Cornell Date: Mon, 18 Apr 2022 03:24:16 +0000 (-0500) Subject: Fix Python bug in v1 verify worklist generation X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6e2634bb78094847108cd81de3686dd4173e6fb;p=eros.git Fix Python bug in v1 verify worklist generation --- 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,