Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
schumifabi committed May 29, 2024
1 parent 4622897 commit bfb29a4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,13 @@ public static Activity getActivity_with_link(Plan plan, double time, Id<Link> li
Activity current = all_acts.get(i);
Activity next = all_acts.get(i + 1);
Activity previous = all_acts.get(i - 1);
if (//current.getLinkId().equals(linkId) &&
#next.getEndTime().isDefined() &&
if (next.getEndTime().isDefined() &&
next.getEndTime().seconds() > time&&
previous.getEndTime().isDefined() &&
previous.getEndTime().seconds() < time) {
return current;
}
if (//current.getLinkId().equals(linkId) &&
next.getType().contains("end") &&
if (next.getType().contains("end") &&
previous.getEndTime().isDefined() &&
previous.getEndTime().seconds() < time) {
return current;
Expand Down

0 comments on commit bfb29a4

Please sign in to comment.