incorporate new pyteamsnap, incorporate loading from sessions before creating new client.

This commit is contained in:
2022-06-23 07:24:07 -05:00
parent e027d3d6ae
commit 5edb233fb4
5 changed files with 32 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ def dashboard(request, team_id=None):
team_id=request.user.teamsnap_preferences.managed_team_id,
)
from pyteamsnap.api import AvailabilitySummary, Event
from pyteamsnap.objects import AvailabilitySummary, Event
client = get_teamsnap_client(request)
ts_events = Event.search(client, team_id=team_id)