From 3ba2bd7a3d3eaff36d9aff66530505f66ef82fe5 Mon Sep 17 00:00:00 2001
From: rishi2019194 <58341663+rishi2019194@users.noreply.github.com>
Date: Sat, 14 Oct 2023 20:30:44 -0400
Subject: [PATCH] refactoring code
---
Code/recommenderapp/utils.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Code/recommenderapp/utils.py b/Code/recommenderapp/utils.py
index d0621cd22..a814610dd 100644
--- a/Code/recommenderapp/utils.py
+++ b/Code/recommenderapp/utils.py
@@ -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'
{movie} {create_colored_tags(\
- movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
+ '\n'.join(f'{movie} \
+ {create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
for movie in categorized_data['Liked']),
- '\n'.join(f'{movie} {create_colored_tags(\
- movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
+ '\n'.join(f'{movie} \
+ {create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
for movie in categorized_data['Disliked']),
- '\n'.join(f'{movie} {create_colored_tags(\
- movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
+ '\n'.join(f'{movie} \
+ {create_colored_tags(movie_to_genres.get(movie, ["Unknown Genre"]))}
' \
for movie in categorized_data['Yet to Watch']))