From ae0789cfb765cdb7a7c5f37a1d8ac2c53a1e8035 Mon Sep 17 00:00:00 2001 From: Date: Tue, 27 Feb 2018 22:37:48 -0500 Subject: [PATCH] Fixed query bug. --- docs/Cards.md | 2 +- scrython/cards/autocomplete.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = {