aggregator.pm: shorter

This commit is contained in:
Milan
2022-11-18 21:51:06 +01:00
parent 647ce1bcef
commit b9dd2d1ec9

View File

@@ -34,16 +34,10 @@ sub get_list($$) {
#set url to embed as last loaded url in javascript
my $date = $params->{date} || '';
$date = 'heute' if ( $params->{date} eq 'today' );
$date = $results->[0]->{day} if ( $params->{event_id} ne '' );
my $url = '';
$date = 'heute' if $params->{date} eq 'today';
$date = $results->[0]->{day} if $params->{event_id} ne '';
#$config->{controllers}->{events}.'/'.$date.'/';
if ( $params->{from_date} ne '' && $params->{till_date} ne '' ) {
$url = $config->{controllers}->{events} . '/' . $params->{from_date} . '/' . $params->{till_date};
} else {
$url = $config->{controllers}->{events} . '/' . $params->{from_date} . '/' . $params->{till_date};
}
my $url = $config->{controllers}->{events} . '/' . $params->{from_date} . '/' . $params->{till_date};
#count most projects
my $used_projects = {};