Skip to content

Conversation

@guodah
Copy link
Contributor

@guodah guodah commented Dec 24, 2019

Currently, it will fail if someone tries to create a schedule with an end_time being time(0,0) using Python 3.4. Looks there is a bug in Python 3.4 (https://stackoverflow.com/questions/28116931/datetime-time0-0-evaluates-as-false-in-boolean-context) which evaluates bool(time(0,0)) to False.

But https://tableau.github.io/server-client-python/docs/ states it supports Python 3.3 or higher.

The fix is just to explicitly check if end_time is None.

guodah and others added 2 commits December 17, 2019 23:28
@shinchris
Copy link
Contributor

Could you also add the change to line 305, in the update request?
Otherwise, looks good 🚀

@shinchris shinchris merged commit d8651a7 into tableau:development Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants