mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-25 15:58:24 -04:00
put back AutoMessage and AutoVideo logic
This commit is contained in:
1 parent
8fde33ee1b
commit
cc83582a90
1 file changed
+7
-7
@@ -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";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user