diff options
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data.py | 14 | ||||
-rw-r--r-- | jfr_playoff/dto.py | 14 |
2 files changed, 15 insertions, 13 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py index 5c1ba04..6c3f0ed 100644 --- a/jfr_playoff/data.py +++ b/jfr_playoff/data.py @@ -2,19 +2,7 @@ from urlparse import urljoin import mysql from db import PlayoffDB import sql as p_sql - -class Team: - name = '' - score = 0.0 - -class Match: - teams = None - running = 0 - link = None - winner = None - loser = None - winner_matches = None - loser_matches = None +from dto import * class PlayoffData(object): def __init__(self, settings): diff --git a/jfr_playoff/dto.py b/jfr_playoff/dto.py new file mode 100644 index 0000000..d34b01d --- /dev/null +++ b/jfr_playoff/dto.py @@ -0,0 +1,14 @@ +class Team(object): + name = '' + score = 0.0 + +class Match(object): + teams = None + running = 0 + link = None + winner = None + loser = None + winner_matches = None + loser_matches = None + +__all__ = ['Team', 'Match'] |