Skip to content

Commit

Permalink
updating dash
Browse files Browse the repository at this point in the history
  • Loading branch information
codeperfectplus committed Feb 11, 2022
1 parent 698c745 commit 69c2166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ def update_data(n):


if __name__ == '__main__':
app.run_server(host='0.0.0.0', port=5000, debug=True)
app.run_server(host='0.0.0.0', port=5000)
4 changes: 2 additions & 2 deletions stock_alert_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_alert(config):
if stock_data['current_price'] < config['min_price']:
difference = config['min_price'] - stock_data['current_price']
difference = round(difference, 2)
message = ':arrow_down: {} is currently down at: {}, min threshold: {}, difference: {}'.format(
message = ':red_circle: {} is currently down at: {}, min threshold: {}, difference: {}'.format(
config['stock_name'],
stock_data['current_price'],
config['min_price'],
Expand All @@ -41,7 +41,7 @@ def check_alert(config):
if stock_data['current_price'] > config['max_price']:
difference = stock_data['current_price'] - config['max_price']
difference = round(difference, 2)
message = ':arrow_up: {} is currently Up at: {}, max threshold: {}, difference: {}'.format(
message = ':green_circle: {} is currently Up at: {}, max threshold: {}, difference: {}'.format(
config['stock_name'],
stock_data['current_price'],
config['max_price'],
Expand Down

0 comments on commit 69c2166

Please sign in to comment.