Jun 29 - Update app name, and documents

This commit is contained in:
2026-06-29 16:51:40 -04:00
parent 26ae7c0cb7
commit 176e19213c
32 changed files with 156 additions and 261 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ def test_email():
try:
send_email(
to,
"Website Checker — SMTP Test",
"This is a test email from Website Checker. Your SMTP configuration is working correctly.",
"Bid Checker — SMTP Test",
"This is a test email from Bid Checker. Your SMTP configuration is working correctly.",
)
log_action(admin["id"], "TEST_EMAIL", "app_settings", None,
f"SMTP test email sent to {to}.")
+1 -1
View File
@@ -155,7 +155,7 @@ def do_send_incomplete_reminders(triggered_by_user_id=None) -> dict:
f"website(s) left to check:\n\n"
f"{site_lines}\n\n"
f"Please complete your checks before the shift ends.\n"
f"Log in to Website Checker to mark them done."
f"Log in to Bid Checker to mark them done."
)
try:
send_email(
+2 -2
View File
@@ -106,12 +106,12 @@ def send_reset(user_id):
reset_url = url_for("auth.reset_password", token=token, _external=True)
body = (
f"Hi {user.get('full_name') or user['username']},\n\n"
f"An administrator has sent you a password reset link for your Website Checker account.\n"
f"An administrator has sent you a password reset link for your Bid Checker account.\n"
f"Click the link below to set a new password (valid for 1 hour):\n\n"
f"{reset_url}\n\n"
f"If you did not expect this, please contact your administrator.\n"
)
send_email(user["email"], "Website Checker — Password Reset", body)
send_email(user["email"], "Bid Checker — Password Reset", body)
log_action(admin["id"], "SEND_RESET_LINK", "users", user_id,
f"Password reset link sent to '{user['username']}' ({user['email']}).")
logger.info(f"Reset email sent to user_id={user_id} by admin_id={admin['id']}.")
+2 -2
View File
@@ -191,12 +191,12 @@ def forgot_password():
reset_url = url_for("auth.reset_password", token=token, _external=True)
body = (
f"Hi {user.get('full_name') or user['username']},\n\n"
f"A password reset was requested for your Website Checker account.\n"
f"A password reset was requested for your Bid Checker account.\n"
f"Click the link below to set a new password (valid for 1 hour):\n\n"
f"{reset_url}\n\n"
f"If you did not request this, you can safely ignore this email.\n"
)
send_email(user["email"], "Website Checker — Password Reset", body)
send_email(user["email"], "Bid Checker — Password Reset", body)
except Exception as e:
logger.error(f"Password reset email error for '{email}': {e}")
+2 -2
View File
@@ -269,11 +269,11 @@ def send_reminders():
if b.get("solicitation_number"):
line += f" — Sol#: {b['solicitation_number']}"
lines.append(line)
lines.append("\nLog in to Website Checker for full details.")
lines.append("\nLog in to Bid Checker for full details.")
body = "\n".join(lines)
try:
send_email(recipients, "Website Checker — Upcoming Bid Deadlines", body)
send_email(recipients, "Bid Checker — Upcoming Bid Deadlines", body)
log_action(user["id"], "BID_REMIND", "bid_tracker", None,
f"Bid reminder email sent to {len(recipients)} admin(s), {len(bids)} bid(s) listed.")
flash(f"Reminder digest sent to {len(recipients)} recipient(s).", "success")
+1 -1
View File
@@ -109,7 +109,7 @@ def health_check(website_id):
try:
t0 = time.time()
resp = _http_req.head(url, timeout=6, allow_redirects=True,
headers={"User-Agent": "WebsiteChecker/1.0 (health-check)"})
headers={"User-Agent": "BidChecker/1.0 (health-check)"})
ms = int((time.time() - t0) * 1000)
ok = resp.status_code < 400
return jsonify({"status": "ok" if ok else "error", "ms": ms})