Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Mar 26, 2023
1 parent 5d4425e commit e2722ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CheapPriceNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
max_price = get_max_price()

if curr_price.value == min_price.value:
send_sms('Put the washing machine on! Min price: ' +
min_price.value_euro + '@' + min_price.hour + ', Max price: ' + max_price.value_euro + '@' + max_price.hour +
', Current Price: ' + curr_price.value_euro + '@' + curr_price.hour + '.')
send_sms('Put the washing machine on!!\n - Min: ' +
min_price.value_euro + '@' + min_price.hour + '\n - Max: ' + max_price.value_euro + '@' + max_price.hour +
'\n - Current: ' + curr_price.value_euro + '@' + curr_price.hour)
else:
print('No need to put the washing machine on. Min price is ' +
min_price.value_euro+', max price is' + max_price.value_euro+', current price is '+curr_price.value_euro+'.')
4 changes: 2 additions & 2 deletions DailyPriceNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
min_price = get_min_price()
max_price = get_max_price()

message = 'Prices today: Min price: ' + \
min_price.value_euro + '@' + min_price.hour + ', Max price: ' + \
message = 'Prices today:\n - Min: '+min_price.value_euro + '@' + \
min_price.hour + '\n - Max: ' + \
max_price.value_euro + '@' + max_price.hour

print(message)
Expand Down
6 changes: 3 additions & 3 deletions ExpensivePriceNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
max_price = get_max_price()

if curr_price.value == max_price.value:
send_sms('Turn everything off!! Now is the most expensive time. Min price: ' +
min_price.value_euro + '@' + min_price.hour + ', Max price: ' + max_price.value_euro + '@' + max_price.hour +
', Current Price: ' + curr_price.value_euro + '@' + curr_price.hour + '.')
send_sms('Turn everything off!!\n - Min: ' +
min_price.value_euro + '@' + min_price.hour + '\n - Max: ' + max_price.value_euro + '@' + max_price.hour +
'\n - Current: ' + curr_price.value_euro + '@' + curr_price.hour)
else:
print('No need to warn about the price. Min price is ' +
min_price.value_euro+', max price is' + max_price.value_euro+', current price is '+curr_price.value_euro+'.')

0 comments on commit e2722ce

Please sign in to comment.