Skip to content

Tigers - Sunny Muniz#172

Open
sunnybysunny wants to merge 25 commits intoAda-C18:masterfrom
sunnybysunny:master
Open

Tigers - Sunny Muniz#172
sunnybysunny wants to merge 25 commits intoAda-C18:masterfrom
sunnybysunny:master

Conversation

@sunnybysunny
Copy link
Copy Markdown

This is a lot shorter, granted, thanks to your suggestions Jayce, thank you.

Copy link
Copy Markdown

@chimerror chimerror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work!

Though not all of the issues that I pointed out got fixed, the ones you did fix are much improved, and I am marking this a Green. I didn't have much to add in most cases since your solution matched my suggested ones, so a lot of my comments are just a single thumbs up emoji noticing you had fixed something.

Comment thread viewing_party/party.py

def create_movie(title, genre, rating):
if title == None or genre == None or rating == None:
return None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py Outdated
"genre": "Horror",
"rating": 3.5
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
@@ -19,25 +16,13 @@ def add_to_watched(user_data, movie):
"watched": [movie]
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue with replacing the key instead of using append was pointed out the first time, but since I felt other work showed your knowledge, it's not a big deal. It still would have been preferred to fix it.

The issue exists in add_to_watchlist as well.

Comment thread viewing_party/party.py
for movie in user_data["watched"]:
total += movie["rating"]

average = total / len(user_data["watched"])
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
for genre, count in genre_count.items():
if count > max_genre_count:
max_genre_count = count
most_watched_genre = genre
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
user_unique_movies.append(title)
for movie in user_data["watched"]:
if movie not in friends_watched_list:
user_unique_movies.append(movie)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
friends_unique_movies.append(movie)

return friends_truly_truly_unique_movies
return friends_unique_movies
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
friends_recs.append(movie)

return friends_recommended_flicks
return friends_recs
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
recs_by_genre.append(dictionary)
for movie in friends_unique_watched:
if movie["genre"] == fav_genre:
recs_by_genre.append(movie)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

Comment thread viewing_party/party.py
if movie in favs:
favs.remove(movie)

return favs
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants