Skip to content
This repository was archived by the owner on Aug 19, 2018. It is now read-only.

Commit 2bc7e7b

Browse files
committed
None or list for self.seasons
1 parent a0da4ac commit 2bc7e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crasync/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def from_data(self, data):
338338
self.clan_tag = clan.get('tag')
339339
self.clan_name = clan.get('name')
340340
self.clan_role = clan.get('role')
341-
self.seasons = [Season(season) for season in data.get('previousSeasons')]
341+
self.seasons = None if data.get('previousSeasons') == [] else [Season(season) for season in data.get('previousSeasons')]
342342

343343
@property
344344
def clan_badge_url(self):

0 commit comments

Comments
 (0)