summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--date_calculator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/date_calculator.py b/date_calculator.py
index 1920d30..aaae928 100644
--- a/date_calculator.py
+++ b/date_calculator.py
@@ -11,7 +11,8 @@ class DateCalculator:
# print(start)
# print(launch)
truncated_start = max(start, launch)
- considered_periods.append((truncated_start, end, id))
+ if truncated_start <= end:
+ considered_periods.append((truncated_start, end, id))
return considered_periods
@staticmethod