From 781dc48724abfa2c0cc554f4ba34d8e6c3765f99 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 9 Aug 2017 17:50:26 -0700 Subject: [PATCH] id is the column in bug which has the bug number, not id --- bin/debbugs-loadsql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index ebf217a..9597447 100755 --- a/bin/debbugs-loadsql +++ b/bin/debbugs-loadsql @@ -561,8 +561,10 @@ sub add_logs { next; } if ($options{quick}) { - my $rs = $s->resultset('Bug')->search({bug=>$bug})->single(); - next if defined $rs and $stat->mtime <= $rs->last_modified()->epoch(); + my $rs = $s->resultset('Bug')-> + search({id=>$bug})->single(); + next if defined $rs and + $stat->mtime <= $rs->last_modified()->epoch(); } eval { load_bug_log(db => $s, -- 2.39.2