From 8e470272fea69a26c7d860c20433c9a0007f0b2e Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 1 Aug 2017 02:27:54 +0200 Subject: DTOs moved to separate submodule --- jfr_playoff/data.py | 14 +------------- jfr_playoff/dto.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 jfr_playoff/dto.py (limited to 'jfr_playoff') 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'] -- cgit v1.2.3