diff options
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data.py | 7 | ||||
-rw-r--r-- | jfr_playoff/db.py | 1 | ||||
-rw-r--r-- | jfr_playoff/filemanager.py | 2 | ||||
-rw-r--r-- | jfr_playoff/generator.py | 2 | ||||
-rw-r--r-- | jfr_playoff/settings.py | 1 |
5 files changed, 11 insertions, 2 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py index 997b038..b54d1ae 100644 --- a/jfr_playoff/data.py +++ b/jfr_playoff/data.py @@ -1,8 +1,11 @@ from urlparse import urljoin + import mysql -from jfr_playoff.db import PlayoffDB -from jfr_playoff.dto import Team, Match, Phase + import jfr_playoff.sql as p_sql +from jfr_playoff.db import PlayoffDB +from jfr_playoff.dto import Match, Phase, Team + class PlayoffData(object): def __init__(self, settings): diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py index 8457dd4..19ec2fb 100644 --- a/jfr_playoff/db.py +++ b/jfr_playoff/db.py @@ -1,5 +1,6 @@ import mysql.connector + class PlayoffDB(object): db_cursor = None diff --git a/jfr_playoff/filemanager.py b/jfr_playoff/filemanager.py index 06374dd..2c443b4 100644 --- a/jfr_playoff/filemanager.py +++ b/jfr_playoff/filemanager.py @@ -1,8 +1,10 @@ import os import shutil import socket + import __main__ + class PlayoffFileManager(object): def __init__(self, settings): diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index 7b9760e..e3e8221 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -1,7 +1,9 @@ from datetime import datetime + import jfr_playoff.template as p_temp from jfr_playoff.data import PlayoffData + class PlayoffGenerator(object): def __init__(self, settings): self.settings = settings diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py index 3ed1774..3b765bc 100644 --- a/jfr_playoff/settings.py +++ b/jfr_playoff/settings.py @@ -3,6 +3,7 @@ import json import readline import sys + def complete_filename(text, state): return (glob.glob(text+'*')+[None])[state] |