Beispiel #1
0
def get_all_messages(session: DBSession, user_id: int) -> List['DBMessage']:
    messages = session.get_all_messages(user_id)
    list_of_messages = [
        message for message in messages if message.is_deleted is not True
    ]

    return list_of_messages
def get_messages(session: DBSession, user_id: int) -> List[DBMessage]:

    list_messages = session.get_all_messages(user_id)

    return list_messages