From f05c65b4f557ede6497d0870627b97335a86d7d0 Mon Sep 17 00:00:00 2001 From: osoken Date: Sat, 17 Aug 2024 16:22:49 +0900 Subject: [PATCH] fix: remove debug messages --- api/birdxplorer_api/routers/data.py | 1 - api/tests/conftest.py | 1 - 2 files changed, 2 deletions(-) diff --git a/api/birdxplorer_api/routers/data.py b/api/birdxplorer_api/routers/data.py index 1dd639f..9af0e71 100644 --- a/api/birdxplorer_api/routers/data.py +++ b/api/birdxplorer_api/routers/data.py @@ -120,7 +120,6 @@ def get_posts( elif created_at_end is not None: posts = list(storage.get_posts_by_created_at_end(end=ensure_twitter_timestamp(created_at_end))) elif search_text is not None and len(search_text) > 0: - print(search_text) posts = list(storage.search_posts_by_text(search_text)) else: posts = list(storage.get_posts()) diff --git a/api/tests/conftest.py b/api/tests/conftest.py index f68fbe8..6b9419c 100644 --- a/api/tests/conftest.py +++ b/api/tests/conftest.py @@ -304,7 +304,6 @@ def _get_posts_by_created_at_end( def _search_posts_by_text(search_text: str) -> Generator[Post, None, None]: for post in post_samples: - print(search_text in post.text, post.text) if search_text in post.text: yield post