tableau/server-client-python

Retrieving subscriptions failed for frequency = Daily, hour (interval) = 24

Closed this issue · 2 comments

tableau_server.subscriptions fails if any subscriptions have schedule frequency="Daily" & interval hours="24"

Versions

  • Tableau Cloud: 2024.1.0
  • Python version: 3.11.4
  • TSC library version: 0.30

To Reproduce
tableau_server_obj.subscriptions

Results
ValueError: Invalid interval 24.0 not in {0.25, 0.5, 2, 1, 4, 6, 8, 12}

To fix
update interval_item.py, line 139:

VALID_INTERVALS = {0.25, 0.5, 1, 2, 4, 6, 8, 12, 24}

Duplicate of #1354

fixed in #1355