From 1627b38ae4778f5bff93566807b1d5016d0f2610 Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Tue, 12 Apr 2022 23:06:42 -0500 Subject: [PATCH] deleted unused base.get_Recommended function (deprecated by RecommendationEngine) --- polyphemus/base.py | 15 --------------- tests/base.py | 6 ------ 2 files changed, 21 deletions(-) diff --git a/polyphemus/base.py b/polyphemus/base.py index 4be9e48..533d44c 100644 --- a/polyphemus/base.py +++ b/polyphemus/base.py @@ -251,21 +251,6 @@ def process_raw_comment_info(raw_comment_info: dict) -> Comment: #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# -def get_recommended(video: Video, auth_token: str = None) -> typing.List['Video']: - - if auth_token is None: - auth_token = api.get_auth_token() - else: - auth_token = auth_token - - recommended_video_info_list = api.get_recommended( - video_title=video.title, video_id=video.claim_id) - recommended_videos = [process_raw_video_info(raw_video_info, auth_token) for raw_video_info in recommended_video_info_list] - - return recommended_videos - -#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# - class RecommendationEngine: #-------------------------------------------------------------------------# diff --git a/tests/base.py b/tests/base.py index 7d1287d..aae7047 100644 --- a/tests/base.py +++ b/tests/base.py @@ -41,12 +41,6 @@ def test_process_raw_video_info(resources): #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# -def test_get_recommended(resources): - video = base.process_raw_video_info(raw_video_info = resources['full_video_info'], auth_token = resources['auth_token']) - base.get_recommended(video = video) - -#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# - def test_process_raw_comment_info(resources): base.process_raw_comment_info(raw_comment_info = resources['full_comment_info'])