From 18419989333acf1d204f0c96419bc3037069fdaa Mon Sep 17 00:00:00 2001 From: kleph Date: Thu, 9 Apr 2020 00:49:36 +0200 Subject: [PATCH] pylint --- beer/beer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beer/beer.py b/beer/beer.py index f8fe914..c7a11a1 100755 --- a/beer/beer.py +++ b/beer/beer.py @@ -27,18 +27,19 @@ def index(hours=None, minutes=None): return data @app.route('/favicon.ico') -def favicon(): +def default_favicon(): """ serve default favicon """ return send_from_directory('static', 'clock-icon.png') @app.route('/favicon/') -def favicon(): +def favicon(mode): """ serve the favicon according to the timer """ if mode == 'beer': - return send_from_directory('static', 'beer-icon.png') + filename = 'beer-icon.png' else: - return send_from_directory('static', 'clock-icon.png') + filename = 'clock-icon.png' + return send_from_directory('static', filename) def main(): """ main func """