New paste Repaste Download
today = date.today()
        tomorrow = today + timedelta(days=1)
        print('end', end)
        if end < today:
            status = 'Past'
            print("Статус отпуска изменен на Past")
        elif start <= today <= end:
            status = 'Active'
            print("Статус отпуска изменен на Active")
        elif start > tomorrow:
            status = 'Coming'
            print("Статус отпуска изменен на Coming")
Filename: stdin. Size: 432b. View raw, , hex, or download this file.

This paste expires on 2025-04-03 23:50:06.482524. Pasted through v1-api.