IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2023, 10:36:27 AM (3 years ago)
Author:
eugene
Message:

some improvements (make sure to examine md5s for chip-specific inst files, randomly draw the new nights)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/advance.rawfix.pl

    r42449 r42452  
    7777
    7878    # select and advance nights not yet running
    79     $sql_get_run = "SELECT dateobs from nights where state = 'new'";
     79#   $sql_get_run = "SELECT dateobs from nights where state = 'new'";
     80
     81    $sql_get_run = "SELECT dateobs FROM (SELECT dateobs, rand() AS myrand FROM nights WHERE (state = 'new')) AS tmp ORDER BY myrand";
     82
    8083    $runref   = $raw_dbh->selectall_arrayref( $sql_get_run );
    8184    @runarray = @$runref;
Note: See TracChangeset for help on using the changeset viewer.