summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-01 02:27:54 +0200
committeremkael <emkael@tlen.pl>2017-08-01 02:27:54 +0200
commit8e470272fea69a26c7d860c20433c9a0007f0b2e (patch)
tree4a4d142dfb2956c4a05ff47e86e60be6ad7a2b64
parentab1a44e39152f11560f7e0e823708914ca181e73 (diff)
DTOs moved to separate submodule
-rw-r--r--jfr_playoff/data.py14
-rw-r--r--jfr_playoff/dto.py14
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']