Skip to content

Commit

Permalink
refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi2019194 committed Oct 15, 2023
1 parent a2faa8c commit 3ba2bd7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Code/recommenderapp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def send_email_to_user(recipient_email, categorized_data):

# Create the email message with HTML content
html_content = c.EMAIL_HTML_CONTENT.format(
'\n'.join(f'<li>{movie} {create_colored_tags(\
movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
'\n'.join(f'<li>{movie} \
{create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
for movie in categorized_data['Liked']),
'\n'.join(f'<li>{movie} {create_colored_tags(\
movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
'\n'.join(f'<li>{movie} \
{create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
for movie in categorized_data['Disliked']),
'\n'.join(f'<li>{movie} {create_colored_tags(\
movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
'\n'.join(f'<li>{movie} \
{create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}</li><br>' \
for movie in categorized_data['Yet to Watch']))


Expand Down

0 comments on commit 3ba2bd7

Please sign in to comment.