events.pm: remove time_of_day

This commit is contained in:
Milan
2023-02-24 20:12:06 +01:00
parent 45c79f26f9
commit 89c5e80afa
3 changed files with 1 additions and 14 deletions

View File

@@ -1092,7 +1092,6 @@ sub get_query($$$) {
,e.start
,e.end
,TIMEDIFF(e.end,e.start) duration
,e.time_of_day
,e.program
,e.series_name
,e.title
@@ -1597,16 +1596,6 @@ sub check_params ($$) {
}
}
my $time_of_day = $params->{time_of_day} || '';
my $found = 0;
if ( defined $time_of_day ) {
for my $key ( 'night', 'morning', 'noon', 'afternoon', 'evening' ) {
$found = 1 if ( $key eq $time_of_day );
}
log::error( $config, 'invalid time_of_day' )
if ( $time_of_day ne '' ) && ( $found == 0 );
}
my $tag = $params->{tag} || '';
if ( ( defined $tag ) && ( $tag ne '' ) ) {
log::error( $config, "invalid tag" ) if ( $tag =~ /\s/ );
@@ -1774,7 +1763,6 @@ sub check_params ($$) {
my $checked = {
date => $date,
time => $time,
time_of_day => $time_of_day,
from_date => $from_date,
till_date => $till_date,
date_range_include => $date_range_include,