Fix Tournament slug

'slug' in the smash.gg API means all the string
"tournament/tournament-slug", but we only want the "tournament-slug"
part.
master
Lertsenem 2020-07-07 16:10:14 +02:00
parent 290445a26d
commit 67fff05bb8
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class Tournament():
): ):
self.id = id self.id = id
self.name = name self.name = name
self.slug = slug self.slug = slug.split("/")[-1]
self.startAt = startAt self.startAt = startAt
self.numEntrants = numEntrants self.numEntrants = numEntrants
self.venueAddress = venueAddress self.venueAddress = venueAddress