Skip to content

Commit

Permalink
Fix #7 by changing the way date arrays are compared.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Oct 1, 2014
1 parent 339f0d6 commit 326ab94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1_download_files_and_generate_report.pl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sub parse_date {
@lastRunReported = parse_date(<$timestamp>, $settings->{'date_format'});
close($timestamp);
}
if (@lastRunReported && @lastRunReported eq @lastRunInDB) {
if (@lastRunReported && (join(',', @lastRunReported) eq join(',', @lastRunInDB))) {
print "Reports up to date. Not creating a new report.\n";
exit 0;
}
Expand Down

0 comments on commit 326ab94

Please sign in to comment.