From 2bd0fcfb9a8dd7d8e1a7564bd8c747e7290ef626 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 18 Nov 2025 16:07:09 -0500 Subject: Fix type mismatch in track_episode_metric logging Changed logger format from %d to %s for episode_id to handle cases where the ID might be passed as a string from route parameters. Error was: Message: 'Tracked %s event for episode %d (user: %s)' Arguments: ('added', '2', 1) Using %s is more flexible and works with both int and str types. --- Biz/PodcastItLater/UI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Biz/PodcastItLater/UI.py') diff --git a/Biz/PodcastItLater/UI.py b/Biz/PodcastItLater/UI.py index a457a02..da0193c 100644 --- a/Biz/PodcastItLater/UI.py +++ b/Biz/PodcastItLater/UI.py @@ -131,7 +131,7 @@ def is_admin(user: dict[str, typing.Any] | None) -> bool: """Check if user is an admin based on email whitelist.""" if not user: return False - admin_emails = ["ben@bensima.com", "demo@example.com", "admin@example.com"] + admin_emails = ["ben@bensima.com", "admin@example.com"] return user.get("email", "").lower() in [ email.lower() for email in admin_emails ] -- cgit v1.2.3