beer/beer.py
kleph acae6f1af4
Some checks failed
continuous-integration/drone/push Build is failing
[CI] Add
2020-02-14 01:53:11 +01:00

25 lines
466 B
Python
Executable file

#!/usr/bin/env python3.6
# -*- coding:utf-8 -*-
""" stupid countdown beer app to amuse my colleagues and collect buzzwords """
from flask import Flask
# pylint: disable=invalid-name
app = Flask(__name__)
@app.route('/')
def index():
""" main and only app """
with open('static/beer.html') as html_file:
data = html_file.read()
return data
def main():
""" main func """
app.run(host='::')
if __name__ == '__main__':
main()