(filtered, prefix="Sort by:", default="")
return wording
Get the naming and icons for limits and ordering.
Get the naming and icons for limits and ordering.
Get the naming and icons for limits and ordering .
def get_wording(filtered, prefix="Sort by:", default=""):
    """
    Get the naming and icons for limits and ordering.
    """

    display = dict(all="all time", week="this week", month="this month",
                   year="this year", rank="Rank", views="Views", today="today",
                   replies="replies", votes="Votes", visit="recent visit",
                   reputation="reputation", joined="date joined", activity="activity level",
                   rsent="oldest to newest ", sent="newest to oldest",
                   rep="sender reputation", tagged="tagged")
    if display.get(filtered):
        displayed = display[filtered]
    else:
        displayed = display[default]

    wording = f"{prefix} {displayed}"

    return wording
def get_wording ( filtered , prefix = "Sort by:" , default = "" ) : display = dict ( all = "all time" , week = "this week" , month = "this month" , year = "this year" , rank = "Rank" , views = "Views" , today = "today" , replies = "replies" , votes = "Votes" , visit = "recent visit" , reputation = "reputation" , joined = "date joined" , activity = "activity level" , rsent = "oldest to newest " , sent = "newest to oldest" , rep = "sender reputation" , tagged = "tagged" ) if display . get ( filtered ) : displayed = display [ filtered ] else : displayed = display [ default ] wording = f"{prefix} {displayed}" return wording