feat: Update project to use pyproject
Some checks failed
Check Code Quality / RuffCheck (push) Failing after 45s
Build Docker / BuildImage (push) Successful in 55s

This commit is contained in:
2025-11-20 15:41:10 +11:00
parent 6d6a443c89
commit ae3d99b0e5
6 changed files with 313 additions and 12 deletions

View File

@@ -75,8 +75,16 @@ def wellknown(path):
@app.route("/")
def index():
# Get current time in the format "dd MMM YYYY hh:mm AM/PM"
current_datetime = datetime.now().strftime("%d %b %Y %I:%M %p")
return render_template("index.html", datetime=current_datetime)
# current_datetime = datetime.now().strftime("%d %b %Y %I:%M %p")
# return render_template("index.html", datetime=current_datetime)
# Print the IP address of the requester
print(f"Request from IP: {request.remote_addr}")
# And the headers
print(f"Request headers: {request.headers}")
# return redirect("https://ya.c.woodburn.au")
@app.route("/<path:path>")