fix typos in table names
[migration-tools.git] / eg_staged_bib_overlay
index 5ab56b3..a2d776c 100755 (executable)
@@ -33,7 +33,7 @@ my $dbpw;
 my $dbhost;
 my $batch;
 my $cutoff;
-my $wait = 0;
+my $wait = 1;
 my $output;
 my $link_skipped;
 
@@ -387,7 +387,7 @@ sub handle_load_bibs {
                 FROM $schema.$batch
                 WHERE to_import
                 AND NOT imported
-                ORDER BY id
+                ORDER BY bib_id DESC
                 LIMIT 1
             )
         });