From: Jakob Cornell Date: Mon, 18 Apr 2022 20:58:27 +0000 (-0500) Subject: Correct `substring' argument type in v2 verify worklist query X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad52ff0101b19506bec06f3c7390ff93f9157fd4;p=eros.git Correct `substring' argument type in v2 verify worklist query --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index ebc2fbf..cb5aded 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -223,7 +223,7 @@ def _get_v2_worklist(conn, disk_id: int, target_ranges: List[NumericRange]) -> L ) as block, substring( hashes, - generate_series(lower(check_erange), upper(check_erange) - 1) * 32, + generate_series(lower(check_erange), upper(check_erange) - 1)::integer * 32, 32 ) as hash, crypt_key