diff --git a/backend/comment_extractor.py b/backend/comment_extractor.py index cc75e7e..2557268 100644 --- a/backend/comment_extractor.py +++ b/backend/comment_extractor.py @@ -77,9 +77,6 @@ def get_all_choosen_comments() -> List[ChoosenComment]: break return chosen_comments -def get_comment() -> ChoosenComment: - return random.choice(get_all_choosen_comments()) - def main(message, context): db.insert_choosen_comments(get_all_choosen_comments()) diff --git a/backend/main.py b/backend/main.py index 71945e3..82d2e35 100644 --- a/backend/main.py +++ b/backend/main.py @@ -27,13 +27,6 @@ def get_comment(): 'content': comment.content, 'url': comment.url } - -@app.get('/all_comments') -def get_comment(): - all_comments = db.get_choosen_comments() - return { - 'all_comments': all_comments, - } if __name__ == '__main__': print(db.get_choosen_comments())