Skip to content
Snippets Groups Projects
Commit 7afe8d4d authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

SearchView: Simplify adding results

parent bec845c6
No related branches found
No related tags found
No related merge requests found
......@@ -101,14 +101,12 @@ def _on_search(self, entry):
if not context or everywhere:
self._scope = 'everywhere'
self._results = app.storage.archive.search_all_logs(text)
self._add_counter()
self._add_results()
else:
self._scope = 'contact'
self._results = app.storage.archive.search_log(
self._account, self._jid, text)
self._add_counter()
self._add_results()
self._add_counter()
self._add_results()
def _add_counter(self):
results_count = len(self._results)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment