From b2ff4e729d659b8f1f692746b60e01c5745adec9 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 Apr 2018 00:35:02 +0200 Subject: Allowing swiss results fetch when database is not configured --- jfr_playoff/data.py | 2 -- 1 file changed, 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) -- cgit v1.2.3