diff options
author | emkael <emkael@tlen.pl> | 2018-05-01 13:01:32 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-05-01 13:01:32 +0200 |
commit | 0bb79de94e9bf78deb76dadb4a02133942665c6b (patch) | |
tree | 374566b2fcf17f1a7b2d09a8748513699ab1b824 /jfr_playoff | |
parent | 28218c054785e3cb77b6e36182bce97c8010319e (diff) |
Class names specified
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/generator.py | 2 | ||||
-rw-r--r-- | jfr_playoff/template.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index e5d29a8..ce3a6f8 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -1,6 +1,6 @@ from datetime import datetime -from jfr_playoff.template import Template as p_temp +from jfr_playoff.template import PlayoffTemplate as p_temp from jfr_playoff.data import PlayoffData diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py index 0699c1e..64bc0e7 100644 --- a/jfr_playoff/template.py +++ b/jfr_playoff/template.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -class TemplateStrings(object): +class PlayoffTemplateStrings(object): MATCH_TABLE = ''' <table border="0" cellspacing="0"> @@ -181,8 +181,8 @@ class TemplateStrings(object): SWISS_DEFAULT_LABEL = 'Turniej o %d. miejsce' -class Template(object): +class PlayoffTemplate(object): @staticmethod def get(string, *params): - return getattr(TemplateStrings, string).decode('utf8') % params + return getattr(PlayoffTemplateStrings, string).decode('utf8') % params |