Moved get_paired_ratings into User class
Changed User function to 'similarity' that returns a correlation coefficient instead of list of pairs.
Moved db_session connection to model.py, import into judgment.py. Moved predict_rating into User class.
Refactored by saving a duplicate db query as a variable.
Remove extra for loop, create tuples of (rating, correlation coefficient) instead of (user id, coefficient). Reduces code.
Refactored predict_rating to exclude movie query (use m.rating). Return weighted mean from predict_rating. WORKS