Removed logs and hardcoded strings
Build, push image, and notify Watchtower / build-image (push) Successful in 37s
Build, push image, and notify Watchtower / notify (push) Successful in 11s

This commit is contained in:
2026-08-17 17:11:46 +02:00
parent 4234e1ed21
commit 9ef4b584a4
+3 -5
View File
@@ -8,8 +8,6 @@ def send_alert_sms(to_phone: str, room_title: str, room_link: str = None, client
account_sid = os.environ.get("TWILIO_SID") account_sid = os.environ.get("TWILIO_SID")
auth_token = os.environ.get("TWILIO_AUTH_TOKEN") auth_token = os.environ.get("TWILIO_AUTH_TOKEN")
from_phone = os.environ.get("TWILIO_PHONE_NUMBER") # Requires your Twilio sender phone number from_phone = os.environ.get("TWILIO_PHONE_NUMBER") # Requires your Twilio sender phone number
print(account_sid)
print(auth_token)
if not account_sid or not auth_token or not from_phone: if not account_sid or not auth_token or not from_phone:
print("Twilio environment variables (TWILIO_SID, TWILIO_ACCOUNT_SECRET, TWILIO_PHONE_NUMBER) missing.") print("Twilio environment variables (TWILIO_SID, TWILIO_ACCOUNT_SECRET, TWILIO_PHONE_NUMBER) missing.")
@@ -38,9 +36,9 @@ def send_alert_sms(to_phone: str, room_title: str, room_link: str = None, client
try: try:
client = Client(account_sid, auth_token) client = Client(account_sid, auth_token)
message = client.messages.create( message = client.messages.create(
to="+32492857876", to=to_phone,
from_="+4915888620339", from_=from_phone,
body="sms_account_alerts", body="sms_internal_alerts",
) )
print(f"SMS sent successfully to {to_phone}. Message SID: {message.sid}") print(f"SMS sent successfully to {to_phone}. Message SID: {message.sid}")
return True return True