Fix Python bug in v1 verify worklist generation
authorJakob Cornell <jakob+gpg@jcornell.net>
Mon, 18 Apr 2022 03:24:16 +0000 (22:24 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Mon, 18 Apr 2022 03:24:16 +0000 (22:24 -0500)
disk_jumble/src/disk_jumble/verify.py

index 063eef5d27b6886642dca178a707996abeef673a..6b314fde013debea12baae4d4995a0ecc83b414c 100644 (file)
@@ -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,