Skip to content
Snippets Groups Projects
Commit 180f2d46 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- bugfix, select only projects which where created in epoch range

parent d2366a7c
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,20 @@ sub prepare_ldpprojects_query {
"includes" => 'transferMetadata.bim:bag-info_dict.bim:LDP-project'
}
};
if (exists $opt->{creationdate_epochs}) {
my @must = @{ $ldpprojects_query->{query}->{bool}->{must} };
push @must,
{ "range" =>
{
"created" => {
"gte" => $opt->{creationdate_epochs}->{from},
"lt" => $opt->{creationdate_epochs}->{to},
}
}
};
$ldpprojects_query->{query}->{bool}->{must}=\@must;
}
return $ldpprojects_query;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment