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

@@ -17,7 +17,7 @@ def teamsnap_event_redirect(request, event_id, team_id):
def edit_lineup(request, event_ids, team_id):
import re
from pyteamsnap.objects import (
from pyteamsnap.api import (
Availability,
AvailabilitySummary,
Event,
@@ -25,6 +25,7 @@ def edit_lineup(request, event_ids, team_id):
EventLineupEntry,
Member,
)
from teamsnap.forms import LineupEntryFormset
client = get_teamsnap_client(request)
@@ -199,7 +200,8 @@ def edit_lineup(request, event_ids, team_id):
def submit_lineup(request, team_id, event_id):
from pyteamsnap.objects import Event, EventLineup, EventLineupEntry
from pyteamsnap.api import Event, EventLineup, EventLineupEntry
from teamsnap.forms import LineupEntryFormset
client = get_teamsnap_client(request)
@@ -258,8 +260,7 @@ def multi_lineup_choose(request, team_id=None):
team_id=request.user.teamsnap_preferences.managed_team_id,
)
from django.forms import formset_factory
from pyteamsnap.objects import Event
from pyteamsnap.api import Event
from .forms import EventChooseForm