From 2a6a2e5baee7abc2b96e507ebb293d29f890554b Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 06:53:36 +0000 Subject: [PATCH] [FIX] Use main.xxx as example Updated the module docstring in hookwise/routes.py to use url_for('main.index') instead of the generic main.xxx. This provides a concrete example and avoids potential confusion with placeholder patterns. Co-authored-by: arumes31 <114224498+arumes31@users.noreply.github.com> --- hookwise/routes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hookwise/routes.py b/hookwise/routes.py index eff41b8..1a6e041 100644 --- a/hookwise/routes.py +++ b/hookwise/routes.py @@ -1,7 +1,7 @@ """ Main routes module - hub that creates main_bp and imports all sub-route modules. Each sub-module imports main_bp and registers its routes directly on it, -so all url_for('main.xxx') references in templates continue to work. +so all url_for('main.index') references in templates continue to work. """ import os @@ -116,13 +116,13 @@ def index() -> Any: if last_activity: if last_activity.tzinfo is None: last_activity = last_activity.replace(tzinfo=timezone.utc) - + # Calculation: Next stale is either last_seen + timeout OR last_alert + timeout # We show whichever is further in the future timeout_delta = timedelta(hours=config.timeout_hours or 24) - + next_alert_from_seen = last_activity + timeout_delta - + if config.last_stale_alert_at: last_alert = config.last_stale_alert_at if last_alert.tzinfo is None: