Skip to content

When task has start and stop that are same dates, gantt can't be constructed #2

Description

@golharam

In gantt.py, line 886, if a task was created with a start and stop date being the same date (and not with duration), the while loop incorrectly reference duration without it being set.

The error is:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

while duration > 1 or (current_day.weekday() in _not_worked_days() or current_day in VACATIONS):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions