Skip to content

Commit

Permalink
メディア情報を取得するか指定するURL paramを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Sep 30, 2024
1 parent 80cdea6 commit 68458f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/birdxplorer_api/routers/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_posts(
offset: int = Query(default=0, ge=0),
limit: int = Query(default=100, gt=0, le=1000),
search_text: Union[None, str] = Query(default=None),
media: bool = Query(default=True),
) -> PostListResponse:
if created_at_from is not None and isinstance(created_at_from, str):
created_at_from = ensure_twitter_timestamp(created_at_from)
Expand All @@ -115,6 +116,7 @@ def get_posts(
search_text=search_text,
offset=offset,
limit=limit,
with_media=media,
)
)
total_count = storage.get_number_of_posts(
Expand Down

0 comments on commit 68458f7

Please sign in to comment.