Skip to content
Snippets Groups Projects
Verified Commit c66ba509 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: ensure schedule.last_date is not None before comparison

parent 4b82759a
No related branches found
No related tags found
No related merge requests found
Pipeline #8889 passed
Pipeline: aura-tests

#8890

    ......@@ -535,7 +535,7 @@ def generate_timeslots(schedule: Schedule) -> list[TimeSlot]:
    starts[k] = starts[k] + relativedelta(days=+schedule.add_days_no)
    ends[k] = ends[k] + relativedelta(days=+schedule.add_days_no)
    if ends[k].date() > schedule.last_date:
    if schedule.last_date and ends[k].date() > schedule.last_date:
    schedule.last_date = ends[k].date()
    timeslots.append(
    TimeSlot(
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment