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

This reverts commit cf28a5f133.
This commit is contained in:
2022-06-23 07:44:26 -05:00
parent fe8a6ccad4
commit a0c6582d52
5 changed files with 19 additions and 32 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.objects import Event
from pyteamsnap.api 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.objects import (
from pyteamsnap.api import (
AvailabilitySummary,
Event,
EventLineup,
@@ -183,8 +183,7 @@ def view_event(request, event_id, team_id=None):
def multi_lineup_choose(request, team_id):
from django.forms import formset_factory
from pyteamsnap.objects import Event
from pyteamsnap.api import Event
from .forms import EventChooseForm