25 lines
466 B
Python
Executable file
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()
|