Skip to content

Commit

Permalink
Added things to get formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Dec 12, 2023
1 parent 38daa71 commit 639c5ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docassemble/AssemblyLine/al_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,9 @@ def fa_icon(
)





def is_sms_enabled() -> bool:
"""Checks if SMS (Twilio) is enabled on the server. Does not verify that it works.
Expand All @@ -1829,13 +1832,15 @@ def is_sms_enabled() -> bool:
return False

return bool(
to_check.get("sms")
and to_check.get("account sid")
to_check.get("sms") and to_check.get("account sid")
and to_check.get("auth token")
and to_check.get("number")
)





def is_phone_or_email(text: str) -> bool:
"""
Returns True if the string is either a valid phone number or a valid email address.
Expand Down

0 comments on commit 639c5ed

Please sign in to comment.