def METHOD_NAME(
    since_days=1,
    since_hours=0,
    limit=18,
    page=1,
    books_only=False,
    sort_by_count=True,
    minimum=None,
):
    logged_books = (
        Bookshelves.fetch(get_activity_stream(limit=limit, page=page))  # i.e. "now"
        if (since_days == 0 and since_hours == 0)
        else Bookshelves.most_logged_books(
            since=dateutil.todays_date_minus(days=since_days, hours=since_hours),
            limit=limit,
            page=page,
            fetch=True,
            sort_by_count=sort_by_count,
            minimum=minimum,
        )
    )
    return (
        [book['work'] for book in logged_books if book.get('work')]
        if books_only
        else logged_books
    )