Fix typo in verify output-writing SQL
authorJakob Cornell <jakob+gpg@jcornell.net>
Tue, 19 Apr 2022 01:56:00 +0000 (20:56 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Tue, 19 Apr 2022 01:56:00 +0000 (20:56 -0500)
disk_jumble/src/disk_jumble/verify.py

index 66cb3faaf88e4a91e55f9c531ba4f71a749c32fc..0e8222680e651c5166de6bc50e32ebf97ee1fd03 100644 (file)
@@ -371,7 +371,7 @@ def _do_verify(conn, disk_id: int, target_ranges: Optional[List[range]], disk_fi
                                                        select verify_id, ordinality - 1, %(disk_id)s, block_range
                                                        from
                                                                new_piece,
-                                                               unnest(%(ranges)) with ordinality as block_range
+                                                               unnest(%(ranges)s) with ordinality as block_range
                                                )
                                        insert into diskjumble.verify_piece_fail (verify_id)
                                        select verify_id from new_piece