Mercurial > code > home > repos > sco-bot
diff search/search_apex.py @ 9:d1b54241a731
rewrite meeting fetcher
author | drewp@bigasterisk.com |
---|---|
date | Wed, 10 Jul 2024 12:25:06 -0700 |
parents | f23b21bd0fce |
children |
line wrap: on
line diff
--- a/search/search_apex.py Sun Jul 07 16:26:56 2024 -0700 +++ b/search/search_apex.py Wed Jul 10 12:25:06 2024 -0700 @@ -20,8 +20,11 @@ self.apex.build_complete_index(lambda *a: docs) print('rebuild complete') - def search(self, q:str): - res= self.apex.search(q ,target_number=100) - pprint(res) + def search(self, q: str): + res = self.apex.search(q, target_number=100) + pprint(res) for row in res['results']: - yield {'title':row['title'], 'snippetHtml':row['highlighted_content']} \ No newline at end of file + yield { + 'title': row['title'], + 'snippetHtml': row['highlighted_content'] + }