pylint
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
kleph 2020-04-09 00:49:36 +02:00
parent 9694eb66b4
commit 1841998933

View file

@ -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/<mode>')
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 """