summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-06 19:09:02 +0200
committeremkael <emkael@tlen.pl>2019-06-06 19:09:02 +0200
commit3c87b02671ebaaa1f6e06c312b910de0de9f4d81 (patch)
treef589c9a6929b7fa35a653adabce12a0004058a45
parentc5c3860551ee8e87603a2f41a0fd08dde64c900f (diff)
Not displaying "None" in team preview list
-rw-r--r--jfr_playoff/gui/frames/team.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py
index e316cec..abeb56f 100644
--- a/jfr_playoff/gui/frames/team.py
+++ b/jfr_playoff/gui/frames/team.py
@@ -313,6 +313,8 @@ class TeamPreviewFrame(ScrollableFrame):
label.destroy()
self.teamList.delete(*self.teamList.get_children())
for idx, team in enumerate(teams):
+ if team[2] is None:
+ team[2] = ''
self.teamList.insert('', tk.END, values=team, tag=idx)
if idx >= len(self.tieFields):
self.tieValues.append(tk.StringVar())