changed logic order

This commit is contained in:
2021-03-05 16:21:17 +00:00
parent 1cb060f58f
commit 2861bbde9b

View File

@@ -28,7 +28,6 @@ for id in j['Y1357']:
print(f"Item is out of stock") print(f"Item is out of stock")
else: else:
print(f"Item is in stock") print(f"Item is in stock")
Path(message_sent_file).touch()
# Your Account Sid and Auth Token from twilio.com/console # Your Account Sid and Auth Token from twilio.com/console
# and set the environment variables. See http://twil.io/secure # and set the environment variables. See http://twil.io/secure
account_sid = os.environ['TWILIO_ACCOUNT_SID'] account_sid = os.environ['TWILIO_ACCOUNT_SID']
@@ -43,4 +42,5 @@ for id in j['Y1357']:
to='+447557447469' to='+447557447469'
) )
print(message.sid) print(message.sid)
Path(message_sent_file).touch()