Compare commits

3 Commits
v0.1 ... master

Author SHA1 Message Date
55a88510be Added SMS_TO environmental variable to testing environment 2021-03-08 08:57:22 +00:00
9873b9739d Update .gitlab-ci.yml file 2021-03-08 08:56:45 +00:00
5a17cf6b0b Moved telephone number to env file 2021-03-08 08:48:05 +00:00
3 changed files with 5 additions and 1 deletions

View File

@@ -1,2 +1,3 @@
TWILIO_ACCOUNT_SID=''
TWILIO_AUTH_TOKEN=''
SMS_TO=''

View File

@@ -1,5 +1,8 @@
image: "python:3.9"
variables:
SMS_TO: "01234567890"
before_script:
- python --version
- pip install -r requirements.txt

View File

@@ -11,7 +11,7 @@ config = {
'api_url': 'https://www.boden.co.uk/api/stock/v1/styles?market=UK&language=en-gb&id=y1357',
'item_id': '40263442', # 40263447 low stock, 40263442 12-18m
'message_sent_file': './sent.txt',
'msg_to': '+447557447469',
'msg_to': os.environ['SMS_TO'],
'website_url': 'https://www.boden.co.uk/en-gb/rainbow-3-in-1-printed-jacket/sty-y1357',
'log_level': logging.WARN
}