From 69c216608a69cf802a947044100cafea42dde771 Mon Sep 17 00:00:00 2001 From: codeperfectplus Date: Fri, 11 Feb 2022 13:10:41 +0530 Subject: [PATCH] updating dash --- dashboard.py | 2 +- stock_alert_script.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard.py b/dashboard.py index 427d48e..f4673eb 100644 --- a/dashboard.py +++ b/dashboard.py @@ -97,4 +97,4 @@ def update_data(n): if __name__ == '__main__': - app.run_server(host='0.0.0.0', port=5000, debug=True) \ No newline at end of file + app.run_server(host='0.0.0.0', port=5000) \ No newline at end of file diff --git a/stock_alert_script.py b/stock_alert_script.py index a7bc6a7..d603ac5 100644 --- a/stock_alert_script.py +++ b/stock_alert_script.py @@ -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'], @@ -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'],