summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-04-06 00:35:02 +0200
committeremkael <emkael@tlen.pl>2018-04-06 00:35:02 +0200
commitb2ff4e729d659b8f1f692746b60e01c5745adec9 (patch)
treec5a071837ca9b477574946cf5243cd1a1ac55937
parentc702773679b5b84aa21fe6016ad2fcab8138c50f (diff)
Allowing swiss results fetch when database is not configured
-rw-r--r--jfr_playoff/data.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index a9c3a0c..78ef1e7 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -79,8 +79,6 @@ class PlayoffData(object):
def fill_swiss_leaderboard(self, swiss, teams):
teams = [team[0] for team in teams]
- if self.database is None:
- return
for event in swiss:
event['ties'] = teams
event_info = TournamentInfo(event, self.database)