17 lines
408 B
Python
17 lines
408 B
Python
from flask import Flask, render_template
|
|
import sqlite3
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def index():
|
|
conn = sqlite3.connect("/db/rustdesk.db")
|
|
cursor = conn.cursor()
|
|
cursor.execute("SELECT * FROM installs")
|
|
data = cursor.fetchall()
|
|
conn.close()
|
|
return render_template("index.html", installs=data)
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=8080, debug=True)
|