WeightliftingNZ / lifter-api-wrapper

This is an Python wrapper for the Lifter API
https://weightliftingnz.github.io/lifter-api-wrapper
MIT License
1 stars 0 forks source link

Competition finder #20

Closed shivan-s closed 2 years ago

shivan-s commented 2 years ago

Is your feature request related to a problem? Please describe. Be able to search for a competition based on, location, name and date range.

Describe the solution you'd like

# similar to find_athlete()
def find_competition(search: str, page: int = 1, date_after: str = None, date_before: str=datetime.now()[:10], order_by_date: bool = True, ascending = False):
    """
        search - search term being competition name and/or location.
        page - page number
        date_after - 'YYYY-MM-DD' (start)
        date_before - 'YYYY-MM-DD' (start)
        order_by_date - Order by date else order by search
        ascending = if the order is ascending
    """
    return

Describe alternatives you've considered Directly accessing the API.