Surya8663 commited on
Commit
5c04706
·
1 Parent(s): c57675d

Reduce number of emails fetched to 3 for performance

Browse files
Files changed (1) hide show
  1. backend/gmail_fetcher.py +1 -1
backend/gmail_fetcher.py CHANGED
@@ -8,7 +8,7 @@ from bs4 import BeautifulSoup # A library for parsing HTML
8
  # Load the environment variables from your .env file
9
  load_dotenv()
10
 
11
- def fetch_latest_emails(num_emails=10):
12
  try:
13
  # Get credentials securely from the .env file
14
  username = os.getenv("GMAIL_USER")
 
8
  # Load the environment variables from your .env file
9
  load_dotenv()
10
 
11
+ def fetch_latest_emails(num_emails=5):
12
  try:
13
  # Get credentials securely from the .env file
14
  username = os.getenv("GMAIL_USER")