put back AutoMessage and AutoVideo logic

This commit is contained in:
Isaac Connor committed 2017-05-26 13:04:08 -04:00
1 parent 8fde33ee1b
commit cc83582a90
1 file changed
+7 -7
+7 -7
View File
@@ -250,14 +250,14 @@ sub Sql {
} # end if terms
if ( $self->{Sql} ) {
#if ( $self->{AutoMessage} ) {
if ( $self->{AutoMessage} ) {
# Include all events, including events that are still ongoing
# and have no EndTime yet
$sql .= " and ( ".$self->{Sql}." )";
#} else {
} else {
# Only include closed events (events with valid EndTime)
#$sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )";
#}
$sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )";
}
}
my @auto_terms;
if ( $self->{AutoArchive} ) {
@@ -265,9 +265,9 @@ sub Sql {
}
# Don't do this, it prevents re-generation and concatenation.
# If the file already exists, then the video won't be re-recreated
#if ( $self->{AutoVideo} ) {
#push @auto_terms, "E.Videoed = 0";
#}
if ( $self->{AutoVideo} ) {
push @auto_terms, "E.Videoed = 0";
}
if ( $self->{AutoUpload} ) {
push @auto_terms, "E.Uploaded = 0";
}