...
This commit is contained in:
@@ -14,7 +14,7 @@ def image_generator(request, team_id, event_id):
|
||||
TOKEN = current_teamsnap_user.socialtoken_set.order_by("-expires_at").first().token
|
||||
|
||||
from pyteamsnap.client import TeamSnap
|
||||
from pyteamsnap.objects import Event
|
||||
from pyteamsnap.models import Event
|
||||
|
||||
client = TeamSnap(token=TOKEN)
|
||||
|
||||
@@ -25,7 +25,7 @@ def image_generator(request, team_id, event_id):
|
||||
def get_matchup_image(request, team_id, event_id, dimensions=None, background=None):
|
||||
import io
|
||||
|
||||
from pyteamsnap.objects import Location, Opponent, Team
|
||||
from pyteamsnap.models import Location, Opponent, Team
|
||||
|
||||
from .utils.gen_image import Location as ImagegenLocation
|
||||
from .utils.gen_image import Team as ImagegenTeam
|
||||
@@ -45,7 +45,7 @@ def get_matchup_image(request, team_id, event_id, dimensions=None, background=No
|
||||
)
|
||||
|
||||
from pyteamsnap.client import TeamSnap
|
||||
from pyteamsnap.objects import Event
|
||||
from pyteamsnap.models import Event
|
||||
|
||||
teamsnap = TeamSnap(token=ts_token)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user