Fix error in v2 verify worklist query
authorJakob Cornell <jakob+gpg@jcornell.net>
Thu, 21 Apr 2022 00:22:42 +0000 (19:22 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Thu, 21 Apr 2022 00:22:42 +0000 (19:22 -0500)
disk_jumble/src/disk_jumble/verify.py

index e2c736d2f05ae1c152c05eacb1c79951781dec53..b1df745c8e3a984734237d7a5dbf59711723474c 100644 (file)
@@ -235,7 +235,7 @@ def _get_v2_worklist(conn, disk_id: int, target_ranges: List[NumericRange]) -> L
                                ),
                                filtered as (
                                        select *, generate_series(lower(check_erange), upper(check_erange) - 1) as piece_num
-                                       from (select * from with_hashes where not isempty(check_erange))
+                                       from (select * from with_hashes where not isempty(check_erange)) as _
                                ),
                                exploded as (
                                        select