summaryrefslogtreecommitdiff
path: root/ausbutler/interface.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-25 15:31:20 +0200
committeremkael <emkael@tlen.pl>2019-07-25 15:31:34 +0200
commit4d9a34d7a38533e9ff9808b83b011b3a00bde68f (patch)
tree4f7c0d3f7bc73027bf4163430f7f494d44c2ff1a /ausbutler/interface.py
parent941bf6bb283d8ef1189ee6c10113aa72e204ae1c (diff)
Attaching favicon to results pages
Fixes #6
Diffstat (limited to 'ausbutler/interface.py')
-rw-r--r--ausbutler/interface.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py
index b3d7c21..d79686d 100644
--- a/ausbutler/interface.py
+++ b/ausbutler/interface.py
@@ -149,7 +149,8 @@ class Interface(object):
'prefix': Constants.shortname,
'round_no': round_no,
'segment_no': segment_no,
- 'first_board': first_board
+ 'first_board': first_board,
+ 'favicon': Constants.favicon
}).encode('utf8')
)
files.append(filename)
@@ -209,7 +210,8 @@ class Interface(object):
first_board + Constants.boardspersegment
),
'date': datetime.now().strftime('%Y-%m-%d'),
- 'time': datetime.now().strftime('%H:%M')
+ 'time': datetime.now().strftime('%H:%M'),
+ 'favicon': Constants.favicon
}).encode('utf8')
)
files.append(filename)
@@ -290,7 +292,8 @@ class Interface(object):
'above_threshold': above_threshold,
'below_threshold': below_threshold,
'date': datetime.now().strftime('%Y-%m-%d'),
- 'time': datetime.now().strftime('%H:%M')
+ 'time': datetime.now().strftime('%H:%M'),
+ 'favicon': Constants.favicon
}).encode('utf8')
)
return [filename]