Skip to content

Commit 76ffdd9

Browse files
committed
DateRange.intersection fix interval
1 parent b8e5087 commit 76ffdd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arctic/date/_daterange.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def intersection(self, other):
8585
else self.startopen if other.start is None \
8686
else other.startopen if self.start < other.start \
8787
else self.startopen if self.start > other.start \
88-
else (self.startopen and other.startopen)
88+
else (self.startopen or other.startopen)
8989
endopen = other.endopen if self.end is None \
9090
else self.endopen if other.end is None \
9191
else other.endopen if self.end > other.end \
9292
else self.endopen if self.end < other.end \
93-
else (self.endopen and other.endopen)
93+
else (self.endopen or other.endopen)
9494

9595
new_start = self.start if other.start is None \
9696
else other.start if self.start is None \

0 commit comments

Comments
 (0)