IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19279


Ignore:
Timestamp:
Aug 28, 2008, 5:35:51 PM (18 years ago)
Author:
bills
Message:

lookup the image_db from the project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_finish.pl

    r19273 r19279  
    2121use PS::IPP::Config qw( :standard );
    2222use PStamp::RequestFile qw( :standard );
     23use PStamp::Job qw( :standard );
    2324
    2425my ( $req_id, $req_name, $req_file, $product, $dbname, $verbose, $save_temps );
     
    159160
    160161        # XXX: get the image_db from a table in the database, or maybe save it in the job
    161         my $image_db = "ps_simtest";     
     162
     163        # unless $exp_id is null (e.g. stack images) get the metadata for this exposure
     164        my ($row, $req_info, $project) = get_request_info($rows, $rownum);
     165        my ($image_db) = resolve_project($project);
    162166        my $exp_info = get_exposure_info($image_db, $exp_id);
    163 
    164         # unless $exp_id is null (e.g. stack images) get the metadata for this exposure
    165         my ($row, $req_info) = get_request_info($rows, $rownum) if $exp_id;
    166167
    167168        if (($job_type eq "stamp") || ($job_type eq "get_image")) {
     
    273274    $rowinfo   .= "$row->{WIDTH}|$row->{HEIGHT}";
    274275
    275     return ($row, $rowinfo);
     276    return ($row, $rowinfo, $row->{PROJECT});
    276277}
    277278
Note: See TracChangeset for help on using the changeset viewer.