Update demo.py

This commit is contained in:
JJTech 2023-11-01 22:05:33 -04:00 committed by GitHub
parent af41a96343
commit 9de9f75a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,8 +114,7 @@ async def main(args: argparse.Namespace):
expiration = expiration.replace(tzinfo=datetime.timezone.utc)
logging.info(expire_msg(expiration))
# This is an Apple ID user, so we can use it to send the notification iMessage (if enabled)
if "U:" in str(user.user_id):
else:
email_user = user
for n in range(len(user.handles)):
# HACK: Just pick the first email address they have to avoid picking the linked phone number