Subject: | Sublimit set on since_file queries |
Date: | Mon, 23 Mar 2015 05:51:32 +0100 |
To: | <bug-Astro-SpaceTrack [...] rt.cpan.org> |
From: | Vidar Tyldum <vidar [...] ksat.no> |
Hi Tom,
If since_file is set and you do a basic retreive() on multiple OIDs the API will only return 1 result.
It seems to happen because of the way $rest{sublimit} is set in the if().. in line 2554.
To overcome this I simply added a delete of that hash key into the block on line 2567. I don't think that breaks any other intentions in the code:
if ( $opt->{since_file} ) {
$rest{FILE} = ">$opt->{since_file}";
$rest{class} = 'tle';
delete $rest{sublimit};
}
I edited in place, so I have no diff.
Thanks for (another) great module.
--
Best regards,
Vidar Tyldum
Lead Software Engineer, Kongsberg Satellite Services AS
[Office: +47 77 60 02 74] [PGP : 0xAC85F5B9]
[TNOC: +47 77 60 02 68] [Email: vidar@ksat.no]
Message body not shown because it is not plain text.