Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/rishi2019194/calorieApp int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
ananya173147 committed Nov 17, 2023
2 parents a025458 + adb79bb commit a39fa7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,19 @@ def send_email():
email = session.get('email')
data = list(
mongo.db.calories.find({'email': email},
{'date', 'email', 'calories', 'burnout'}))
table = [['Date', 'Email ID', 'Calories', 'Burnout']]
{'date', 'email', 'calories'}))
print(data)
table = [['Date', 'Email ID', 'Calories']]
for a in data:
tmp = [a['date'], a['email'], a['calories'], a['burnout']]
tmp = [a['date'], a['email'], a['calories']]
table.append(tmp)

friend_email = str(request.form.get('share')).strip()
friend_email = str(friend_email).split(',')
server = smtplib.SMTP_SSL("smtp.gmail.com", 465)
#Storing sender's email address and password
sender_email = "calorie.app.server@gmail.com"
sender_password = "Temp@1234"
sender_email = "calorieapp508@gmail.com"
sender_password = "xsba mgzy rnkr wkvp"

#Logging in with sender details
server.login(sender_email, sender_password)
Expand Down
4 changes: 2 additions & 2 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ <h5 class="text-white mb-3">Newsletter</h5>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1"></script>
<df-messenger
<!-- <df-messenger
intent="WELCOME"
chat-title="BurnBot"
agent-id="49437a24-4e37-4774-a720-95be1ffa0142"
language-code="en"
></df-messenger>
></df-messenger> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
Expand Down

0 comments on commit a39fa7f

Please sign in to comment.