Update App.py

This commit is contained in:
DJObleezy 2025-04-10 07:17:10 -07:00 committed by GitHub
parent 8cc012219b
commit d491220a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
App.py
View File

@ -471,7 +471,7 @@ def api_metrics():
@app.route("/blocks") @app.route("/blocks")
def blocks_page(): def blocks_page():
"""Serve the blocks overview page.""" """Serve the blocks overview page."""
current_time = datetime.now(ZoneInfo("America/Los_Angeles")).strftime("%Y-%m-%d %H:%M:%S %p") current_time = datetime.now(ZoneInfo("America/Los_Angeles")).strftime("%b %d, %Y, %I:%M:%S %p")
return render_template("blocks.html", current_time=current_time) return render_template("blocks.html", current_time=current_time)
# --- Workers Dashboard Route and API --- # --- Workers Dashboard Route and API ---
@ -781,7 +781,7 @@ def api_clear_notifications():
@app.route("/notifications") @app.route("/notifications")
def notifications_page(): def notifications_page():
"""Serve the notifications page.""" """Serve the notifications page."""
current_time = datetime.now(ZoneInfo("America/Los_Angeles")).strftime("%Y-%m-%d %H:%M:%S %p") current_time = datetime.now(ZoneInfo("America/Los_Angeles")).strftime("%b %d, %Y, %I:%M:%S %p")
return render_template("notifications.html", current_time=current_time) return render_template("notifications.html", current_time=current_time)
@app.errorhandler(404) @app.errorhandler(404)