diff options
Diffstat (limited to 'rhimport-rs')
-rwxr-xr-x | rhimport-rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/rhimport-rs b/rhimport-rs index a593f1d..e528b5b 100755 --- a/rhimport-rs +++ b/rhimport-rs @@ -77,17 +77,7 @@ if(!$to_cart) { exit 1; } -my $curweek = get("http://airplay/getweek.php"); -if(!defined $curweek || $curweek !~ /\d/ ) { - print "can't fetch current week info!\n"; - $dbh->disconnect(); - exit 1; -} -if($curweek < 1 || $curweek > 4) { - print "current week($curweek) out of bounds!\n"; - $dbh->disconnect(); - exit 1; -} +my $curweek = get_rd_week(); my $nextweek = $curweek == 4 ? 1 : $curweek + 1; my @today = Date::Calc::Today(); |