about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-08-26 23:08:08 +0100
committerArun Isaac2026-08-26 23:11:40 +0100
commit08a4a272bb2c1e527d01baa27fe36836cb9db6b7 (patch)
treeb7aa1ba28e1119f157b3edf37cc5e1642d222716
parent7e9402d342f6e675a21400a6e84e608a5e8a6aab (diff)
downloaddomagi-08a4a272bb2c1e527d01baa27fe36836cb9db6b7.tar.gz
domagi-08a4a272bb2c1e527d01baa27fe36836cb9db6b7.tar.lz
domagi-08a4a272bb2c1e527d01baa27fe36836cb9db6b7.zip
Re-order AND clauses for readability.
It's nice to have the $1, $2 and $3 line up in that order.
-rw-r--r--domagi/domagi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/domagi/domagi.py b/domagi/domagi.py
index 72f9d73..045ef3f 100644
--- a/domagi/domagi.py
+++ b/domagi/domagi.py
@@ -239,7 +239,7 @@ def extract(con, outfile, segment_name, path_range, steps, threads, progress):
           SELECT segment_id AS id
           FROM path_segment
           INNER JOIN path ON path.id=path_segment.path_id
-          WHERE path.name=$1 AND path_segment.start<$3 AND $2<path_segment.end;
+          WHERE path.name=$1 AND $2<path_segment.end AND path_segment.start<$3;
         """,
                     [path, int(start), int(end)])
     elif segment_name: