some structure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-03 23:02:48 +10:00
parent 10ebc6d628
commit 1cc624c4c8
2 changed files with 9 additions and 3 deletions

8
app.py
View File

@ -1,9 +1,11 @@
from flask import Flask, render_template, request
from flask_assets import Bundle, Environment
from todo import todos
from boards import board_list
import socket
app = Flask(__name__)
assets = Environment(app)
@ -33,7 +35,9 @@ def healthz():
@app.route("/")
def homepage():
return render_template("main-page.html", boards=board_list)
docker_short_id = socket.gethostname()
return render_template("main-page.html", host_id=docker_short_id, boards=board_list)
### stolen

View File

@ -2,6 +2,8 @@
{% block content %}
<div class="host-id">Вас закинуло сюда: {{host_id}}</div>
<div class="content">
Dobro pozhalovat. AGAIN.
</div>