From 326ab945828d4c3088ca6f6139020597b9b101c3 Mon Sep 17 00:00:00 2001 From: don Date: Wed, 1 Oct 2014 14:38:51 -0700 Subject: [PATCH] Fix #7 by changing the way date arrays are compared. --- 1_download_files_and_generate_report.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1_download_files_and_generate_report.pl b/1_download_files_and_generate_report.pl index d19264b..4da4464 100755 --- a/1_download_files_and_generate_report.pl +++ b/1_download_files_and_generate_report.pl @@ -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; }