diff options
author | emkael <emkael@tlen.pl> | 2019-11-16 21:02:49 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-11-16 21:02:49 +0100 |
commit | 5f921de946c57235b28df8051a552928369e59e5 (patch) | |
tree | ed48266d19cbfbfc57f7880fecd166a0c8687346 /jfr_playoff/generator.py | |
parent | c86e17bd9464c53e1e09663443a5e1b228cf96ef (diff) |
Favicon support
Diffstat (limited to 'jfr_playoff/generator.py')
-rw-r--r-- | jfr_playoff/generator.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index e640e03..f2dc22b 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -10,6 +10,7 @@ class PlayoffGenerator(object): def __init__(self, settings): self.data = PlayoffData(settings) self.page = settings.get('page') + print self.page.get('favicon') PlayoffLogger.get('generator').info( 'page settings: %s', self.page) self.team_box_settings = self.page.get('team_boxes', {}) @@ -40,6 +41,10 @@ class PlayoffGenerator(object): 'PAGE_HEAD_REFRESH', self.page['refresh']) \ if self.page['refresh'] > 0 else '', + self.p_temp.get( + 'PAGE_HEAD_FAVICON', + self.page['favicon']) \ + if len(self.page.get('favicon', '')) else '', self.page['title']), self.p_temp.get( 'PAGE_BODY', |