mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 12:04:15 +02:00
[core.controller] fix: not passing the 'is_url' parameter as a bool
This commit is contained in:
@@ -162,14 +162,14 @@ class GenericSoftwareManager(SoftwareManager):
|
|||||||
if self.context.is_internet_available():
|
if self.context.is_internet_available():
|
||||||
norm_word = words.strip().lower()
|
norm_word = words.strip().lower()
|
||||||
|
|
||||||
url_words = RE_IS_URL.match(norm_word)
|
is_url = bool(RE_IS_URL.match(norm_word))
|
||||||
disk_loader = self.disk_loader_factory.new()
|
disk_loader = self.disk_loader_factory.new()
|
||||||
disk_loader.start()
|
disk_loader.start()
|
||||||
|
|
||||||
threads = []
|
threads = []
|
||||||
|
|
||||||
for man in self.managers:
|
for man in self.managers:
|
||||||
t = Thread(target=self._search, args=(norm_word, url_words, man, disk_loader, res))
|
t = Thread(target=self._search, args=(norm_word, is_url, man, disk_loader, res))
|
||||||
t.start()
|
t.start()
|
||||||
threads.append(t)
|
threads.append(t)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user