diff options
author | emkael <emkael@tlen.pl> | 2019-12-30 15:03:56 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-30 15:46:42 +0100 |
commit | 5e66c1684a8a2b0597fc2633078c23e212cce228 (patch) | |
tree | aceb836619e4cde2f71cae5a71e27899f9b3a7cf /jfr_playoff/data/tournament/tcjson.py | |
parent | 9e29356e95c06907ace1239b1367b134155d3167 (diff) |
Auto-loading tournament result info client classes
Diffstat (limited to 'jfr_playoff/data/tournament/tcjson.py')
-rw-r--r-- | jfr_playoff/data/tournament/tcjson.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jfr_playoff/data/tournament/tcjson.py b/jfr_playoff/data/tournament/tcjson.py index 5e375ed..8d7cd34 100644 --- a/jfr_playoff/data/tournament/tcjson.py +++ b/jfr_playoff/data/tournament/tcjson.py @@ -9,6 +9,13 @@ FLAG_CDN_URL = 'https://cdn.tournamentcalculator.com/flags/' class TCJsonTournamentInfo(TournamentInfoClient): + @property + def priority(self): + return 20 + + def is_capable(self): + return 'link' in self.settings + def get_exceptions(self, method): return (TypeError, IndexError, KeyError, IOError, ValueError) |