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