diff --git a/docs/Cards.md b/docs/Cards.md index 5965fc0..97e4fa5 100644 --- a/docs/Cards.md +++ b/docs/Cards.md @@ -124,7 +124,7 @@ Get a list of potential autocompletion phrases. | Param |Required [y/n]| Input type | Function | |:---:|:---:|:---:|:---:| -|query|Yes|String| The query of the autocompletion.| +|q|Yes|String| The query of the autocompletion.| **Attributes:** diff --git a/scrython/cards/autocomplete.py b/scrython/cards/autocomplete.py index ab79e49..8badc66 100644 --- a/scrython/cards/autocomplete.py +++ b/scrython/cards/autocomplete.py @@ -7,7 +7,7 @@ class Autocomplete(CardsObject): Get a list of potential autocompletion phrases. Positional arguments: - query : str ........... The query of the autocompletion. + q : str ........... The query of the autocompletion. Optional arguments: Inherits arguments from CardsObject. @@ -22,7 +22,7 @@ class Autocomplete(CardsObject): >>> auto.total_items() """ def __init__(self, **kwargs): - if kwargs.get('query') is None: + if kwargs.get('q') is None: raise TypeError('No query provided to search by') self.dict = {