Add 'include_variations' search option for cards.

This commit is contained in:
Tim Scott 2019-03-23 21:53:42 -05:00
parent ae28e11e6a
commit 48815952e5
1 changed files with 2 additions and 1 deletions

View File

@ -66,13 +66,14 @@ class Search(FoundationObject):
'order':kwargs.get('order', 'none'), 'order':kwargs.get('order', 'none'),
'unique':kwargs.get('unique', 'none'), 'unique':kwargs.get('unique', 'none'),
'dir':kwargs.get('dir', 'none'), 'dir':kwargs.get('dir', 'none'),
'include_variations':kwargs.get('include_variations','false'),
'include_extras':kwargs.get('include_extras', 'false'), 'include_extras':kwargs.get('include_extras', 'false'),
'include_multilingual':kwargs.get('include_multilingual', 'false'), 'include_multilingual':kwargs.get('include_multilingual', 'false'),
'page':kwargs.get('page', '1') 'page':kwargs.get('page', '1')
} }
self.args = urllib.parse.urlencode(self.dict) self.args = urllib.parse.urlencode(self.dict)
self.url = 'cards/search?' + self.args self.url = 'cards/search?' + self.args
#print("URL: " + self.url)
super(Search, self).__init__(self.url) super(Search, self).__init__(self.url)