Commit 43a25a56 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

inline variables

parent dc5c4dad
......@@ -36,12 +36,10 @@ public class SolutionsRepository implements Repository
{
//todo: merge with upper
//todo: use morphia filter
List<Solution> solutions = datastore.createQuery(Solution.class)
.asList();
List<Solution> collect = solutions.stream()
return datastore.createQuery(Solution.class)
.asList().stream()
.filter(solution -> solution.getTeam().equals(team))
.collect(Collectors.toList());
return collect;
//todo: group by task
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment