Skip to content

Commit b1e8a99

Browse files
authored
Update asset_management.py
removed email thingie
1 parent d9f962c commit b1e8a99

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

services/asset_management.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ def create_stock(db: Session, symbol: str) -> Stock:
3939
status=AssetStatus.PENDING,
4040
)
4141

42-
# Send email notification
43-
company_name = stock.asset_name
44-
email_subject = f"New Stock Added: {symbol}"
45-
email_message = f"""
46-
A new stock has been added to the database:
47-
48-
Ticker: {symbol}
49-
Name: {company_name}
50-
Exchange: {stock.exchange}
51-
52-
Initiate the model training process for this stock.
53-
Change the status to 'ACTIVE' when ready.
54-
"""
55-
send_email_notification(email_subject, email_message)
42+
# # Send email notification
43+
# company_name = stock.asset_name
44+
# email_subject = f"New Stock Added: {symbol}"
45+
# email_message = f"""
46+
# A new stock has been added to the database:
47+
48+
# Ticker: {symbol}
49+
# Name: {company_name}
50+
# Exchange: {stock.exchange}
51+
52+
# Initiate the model training process for this stock.
53+
# Change the status to 'ACTIVE' when ready.
54+
# """
55+
# send_email_notification(email_subject, email_message)
5656

5757
db.add(stock)
5858
db.commit()

0 commit comments

Comments
 (0)