From 5e66c1684a8a2b0597fc2633078c23e212cce228 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 30 Dec 2019 15:03:56 +0100 Subject: Auto-loading tournament result info client classes --- jfr_playoff/data/tournament/jfrhtml.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'jfr_playoff/data/tournament/jfrhtml.py') diff --git a/jfr_playoff/data/tournament/jfrhtml.py b/jfr_playoff/data/tournament/jfrhtml.py index 017ce3b..ac57d4c 100644 --- a/jfr_playoff/data/tournament/jfrhtml.py +++ b/jfr_playoff/data/tournament/jfrhtml.py @@ -7,6 +7,14 @@ from jfr_playoff.data.tournament import TournamentInfoClient class JFRHtmlTournamentInfo(TournamentInfoClient): + @property + def priority(self): + return 30 + + def is_capable(self): + return ('link' in self.settings) \ + and (self.settings['link'].endswith('leaderb.html')) + def get_exceptions(self, method): if method == 'get_results_link': return (KeyError, ValueError) -- cgit v1.2.3