Skip to content

Commit

Permalink
Minor change to notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshan-Banneheke committed Nov 16, 2021
1 parent d33d352 commit dffdada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/pubsub/ps_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def announce(self, msg):
elif (percent_price > 5):
notifications.add_notification({"message": "successful", "type": "Over 5 percent incriment", "symbol": sy,
"open price": open_price, "current peak price": peak_price})
elif (percent_price < (-5)):
notifications.add_notification(
{"message": "successful", "type": "Over 5 percent decriment", "symbol": sy,
"open price": open_price, "current peak price": peak_price})
elif (percent_price < (-25)):
notifications.add_notification(
{"message": "successful", "type": "Over 25 percent decriment", "symbol": sy,
Expand Down

0 comments on commit dffdada

Please sign in to comment.