diff --git a/myproject/demo_notifications.py b/myproject/demo_notifications.py index d1d9ce3..4a30b1f 100644 --- a/myproject/demo_notifications.py +++ b/myproject/demo_notifications.py @@ -44,7 +44,7 @@ def demo_notification_system(): print("\nšŸ‘„ Current subscribers:") subscribers = notification_system.get_subscribers() for _, sub in subscribers.iterrows(): - print(f"- ID {sub['id']}: {sub['name']} ({sub['phone_number']}) - {sub['preferred_method']}") + print(f"- ID {sub['id']}: {sub['name']} - {sub['preferred_method']}") # Create sample earthquake prediction print("\nšŸ”® Creating sample earthquake prediction...") diff --git a/myproject/earthquake_notifications.py b/myproject/earthquake_notifications.py index c71d25e..ec5fa75 100644 --- a/myproject/earthquake_notifications.py +++ b/myproject/earthquake_notifications.py @@ -142,7 +142,7 @@ def add_subscriber(self, name: str, phone_number: str, whatsapp_number: str = No return subscriber_id except sqlite3.IntegrityError: - logger.error(f"Subscriber with phone number {phone_number} already exists") + logger.error("A subscriber with the provided phone number already exists.") return None finally: conn.close() diff --git a/myproject/integration_demo.py b/myproject/integration_demo.py index 5679576..8a4c8a9 100644 --- a/myproject/integration_demo.py +++ b/myproject/integration_demo.py @@ -589,7 +589,7 @@ def demo_company_deployment(): for sub in company_subscribers: subscriber_id = notification_system.add_subscriber(**sub) if subscriber_id: - print(f"āœ… Added: {sub['name']} - Company Stakeholder ({sub.get('employee_id', 'N/A')})") + print(f"āœ… Added: {sub['name']} - Company Stakeholder") else: print(f"āš ļø {sub['name']} already exists or failed to add")