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

@@ -116,7 +116,7 @@ def schedule_view(request, team_id=None):
client = get_teamsnap_client(request)
no_past = bool(request.GET.get("no_past", 0))
games_only = bool(request.GET.get("games_only", 0))
from pyteamsnap.api import Event
from pyteamsnap.objects import Event
ts_events = Event.search(client, team_id=team_id)
if no_past:
@@ -143,7 +143,7 @@ def view_event(request, event_id, team_id=None):
"teamsnap_event", team_id=request.user.teamsnap_preferences.managed_team_id
)
from pyteamsnap.api import (
from pyteamsnap.objects import (
AvailabilitySummary,
Event,
EventLineup,
@@ -183,7 +183,8 @@ def view_event(request, event_id, team_id=None):
def multi_lineup_choose(request, team_id):
from django.forms import formset_factory
from pyteamsnap.api import Event
from pyteamsnap.objects import Event
from .forms import EventChooseForm