Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion myproject/demo_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down
2 changes: 1 addition & 1 deletion myproject/earthquake_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion myproject/integration_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down