Skip to content

Commit

Permalink
Never mind
Browse files Browse the repository at this point in the history
  • Loading branch information
MelMott committed Mar 30, 2023
1 parent 77ba054 commit 44d99ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions viewing_party/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def get_watched_avg_rating(user_data):
# Iterate through movies in list of movies
for movie in movie_list:
# Find the sum of the integers in value for "rating" in the movie dict
#sum_rating += movie["rating"]
sum_rating += movie.get("rating")
sum_rating += movie["rating"]
# If the input is an empty list, return 0.0 for average
if len(movie_list) == 0:
return 0.0
Expand Down

0 comments on commit 44d99ac

Please sign in to comment.