mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[snap] suggestions retrieved from bauh-files
This commit is contained in:
@@ -336,7 +336,7 @@ class GenericSoftwareManager(SoftwareManager):
|
||||
self.logger.info(man.__class__.__name__ + ' took {0:.2f} seconds'.format(mtf - mti))
|
||||
|
||||
if man_sugs:
|
||||
if len(man_sugs) > limit:
|
||||
if 0 < limit < len(man_sugs):
|
||||
man_sugs = man_sugs[0:limit]
|
||||
|
||||
suggestions.extend(man_sugs)
|
||||
|
||||
Reference in New Issue
Block a user