summaryrefslogtreecommitdiff
path: root/rhautoimport-pv
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2018-04-26 14:21:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2018-04-26 14:21:40 (GMT)
commitd5fa7fe6f279d96e3ed637519d424fe4264f21f0 (patch)
treeb65eb75b573b3661ffa056a4568fca4fc3c7ece2 /rhautoimport-pv
parent100bf2f32f40db3f7f2fd5f24a10bf2c461e4b47 (diff)
updated pura vida sounds
Diffstat (limited to 'rhautoimport-pv')
-rwxr-xr-xrhautoimport-pv10
1 files changed, 5 insertions, 5 deletions
diff --git a/rhautoimport-pv b/rhautoimport-pv
index ef7b1b5..430128e 100755
--- a/rhautoimport-pv
+++ b/rhautoimport-pv
@@ -49,7 +49,7 @@ binmode(STDERR, ":utf8");
my $curweek = RHRD::utils::get_rd_week();
if($#ARGV >= 0 && $ARGV[0] eq 'last') {
- if($curweek == 2 || $curweek == 4) {
+ if($curweek == 1 || $curweek == 3) {
print "!!!This is the last attempt, there won't be a retry on error!!!\n";
$LAST_RUN = 1;
}
@@ -74,14 +74,14 @@ my @today = Date::Calc::Today();
my @import_date = Date::Calc::Standard_to_Business(@today);
my $dow = $import_date[2];
-@import_date = Date::Calc::Business_to_Standard($import_date[0], $import_date[1], 1);
-if($dow == 1) {
- if($curweek == 1 || $curweek == 3) {
+@import_date = Date::Calc::Business_to_Standard($import_date[0], $import_date[1], 2);
+if($dow <= 2) {
+ if($curweek == 2 || $curweek == 4) {
@import_date = Date::Calc::Add_Delta_Days(@import_date, 7);
}
} else {
@import_date = Date::Calc::Add_Delta_Days(@import_date, 7);
- if($curweek == 2 || $curweek == 4) {
+ if($curweek == 1 || $curweek == 3) {
@import_date = Date::Calc::Add_Delta_Days(@import_date, 7);
}
}