Skip to content

The calculation of constraint at least 10 hours between two shifts #25

Description

@AybukeAk

Hello!

Could there be an error when calculating the constraint that we specified should not be less than 10 hours between two shifts? Although 10 hours are calculated in seconds, why do we divide by 60 again after the total_seconds() method in line 68, where we get the difference between the 2nd shift and the 1st shift? Could you please explain that part to me?

Thanks in advance!

(TEN_HOURS_IN_SECONDS - (second_shift.start - first_shift.end).total_seconds()) // 60)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions