Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ada Whales C17- Nishat Salsabil #106

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

nishatsalsabil
Copy link

No description provided.

Copy link

@jericahuang jericahuang left a comment

Choose a reason for hiding this comment

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

Excellent first project, Nish! You hit the learning goals and passed all the tests. 🙂🟢
You implemented every function according to the spec; I made notes in points of improvement as well as great highlights I saw. Nice job finishing out the tests as well. Keep up the great work!

Comment on lines +131 to +134
assert updated_data["watched"][0]["title"] == MOVIE_TITLE_1
assert updated_data["watched"][0]["genre"] == GENRE_1
assert updated_data["watched"][0]["rating"] == RATING_1
assert updated_data["watchlist"] == []

Choose a reason for hiding this comment

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

👍🏻

Comment on lines +158 to +160
assert updated_data["watched"][1]["title"] == movie_to_watch["title"]
assert updated_data["watched"][1]["genre"] == movie_to_watch["genre"]
assert updated_data["watched"][1]["rating"] == movie_to_watch["rating"]

Choose a reason for hiding this comment

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

👍🏻

@@ -56,10 +60,12 @@ def test_friends_unique_movies_not_duplicated():
assert len(friends_unique_movies) == 3

# *************************************************************************************************
# ****** Add assertions here to test that the correct movies are in friends_unique_movies **********
assert HORROR_1 in friends_unique_movies

Choose a reason for hiding this comment

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

👍🏻

Return dictionary
'''
dict = {}
if movie_title == None or genre == None or rating == None:

Choose a reason for hiding this comment

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

Great; this check works, though it is more customary to use is to check whether a variable is None. This article gives a good explanation.

pp = pprint.PrettyPrinter(indent=4)

def create_movie(movie_title, genre, rating):
'''

Choose a reason for hiding this comment

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

Excellent use of docstrings!

for friend_movie in friend_movies:

if friend_movie not in watched_movies:
if friend_movie in movies_not_watched_by_user:

Choose a reason for hiding this comment

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

You can omit this block if no action is being taken

'''
user_host_recs = []
friends_list = get_friends_unique_watched(user_data)
for i in friends_list:

Choose a reason for hiding this comment

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

It helps to have a more descriptive variable than i!

'''
new_recs = []
most_watched_genre = get_most_watched_genre(user_data)
#print(most_watched_genre)

Choose a reason for hiding this comment

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

Fantastic use of helper functions!

Comment on lines +212 to +218
# print("*********MY_MOVIE**********")
# print(movie)
# print("*********FRIEND_MOVIE**********")
# print(friend_movie)
# print("*********REC_MOVIE**********")
# print(rec_movies)
# print()

Choose a reason for hiding this comment

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

Great debugging print statements; feel free to delete when submitting

Comment on lines +3 to +4
from audioop import avg
from sys import argv

Choose a reason for hiding this comment

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

I don't see these libraries were used?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you Jerica for what I did well on and on area's to improve! I'm not sure what happened with the libraries? I saw they were greyed out and definitely had it in my mind to ask but soon as the tests started passing I think it completely slipped my mind! I will go back and check for this project and keep all this in mind for the future. Thank you!

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