aboutsummaryrefslogtreecommitdiff
path: root/command
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--command/download.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/command/download.php b/command/download.php
index cb0987d..d0999b4 100644
--- a/command/download.php
+++ b/command/download.php
@@ -23,8 +23,19 @@ if(isset($conf['MAX_CONFERENCE_AGE']))
$conferencesAfter = new DateTime();
$conferencesAfter->sub(new DateInterval('P'.$months.'D'));
- stdout('Filtering before %s', $conferencesAfter->format('Y-m-d'));
+ stdout('Skipping Conferences before %s', $conferencesAfter->format('Y-m-d'));
$conferences = array_filter($conferences, function($conference) use ($conferencesAfter) {
+ if($conference->isOpen())
+ {
+ stdout(
+ ' %s: %s',
+ '---open---',
+ $conference->getSlug()
+ );
+
+ return true;
+ }
+
$isBefore = $conference->endsAt() < $conferencesAfter;
if($isBefore) {