mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[fix][appimage] allowing some apps to be filled with empty category elements
This commit is contained in:
@@ -9,6 +9,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- UI
|
- UI
|
||||||
- filters algorithm speed and sorting
|
- filters algorithm speed and sorting
|
||||||
### Fixes
|
### Fixes
|
||||||
|
- AppImage
|
||||||
|
- allowing some apps to be filled with empty category elements
|
||||||
- Web
|
- Web
|
||||||
- handling unexpected connection errors
|
- handling unexpected connection errors
|
||||||
- handling web page fetch errors
|
- handling web page fetch errors
|
||||||
|
|||||||
@@ -169,8 +169,8 @@ class AppImageManager(SoftwareManager):
|
|||||||
|
|
||||||
found_map = {}
|
found_map = {}
|
||||||
idx = 0
|
idx = 0
|
||||||
for l in cursor.fetchall():
|
for r in cursor.fetchall():
|
||||||
app = AppImage(*l, i18n=self.i18n, custom_actions=self.custom_app_actions)
|
app = AppImage(*r, i18n=self.i18n, custom_actions=self.custom_app_actions)
|
||||||
res.new.append(app)
|
res.new.append(app)
|
||||||
found_map[self._gen_app_key(app)] = {'app': app, 'idx': idx}
|
found_map[self._gen_app_key(app)] = {'app': app, 'idx': idx}
|
||||||
idx += 1
|
idx += 1
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class AppImage(SoftwarePackage):
|
|||||||
installed=installed)
|
installed=installed)
|
||||||
self.source = source
|
self.source = source
|
||||||
self.github = github
|
self.github = github
|
||||||
self.categories = categories.split(',') if isinstance(categories, str) else categories
|
self.categories = (categories.split(',') if isinstance(categories, str) else categories) if categories else None
|
||||||
self.url_download = url_download
|
self.url_download = url_download
|
||||||
self.icon_path = icon_path
|
self.icon_path = icon_path
|
||||||
self.url_screenshot = url_screenshot
|
self.url_screenshot = url_screenshot
|
||||||
|
|||||||
Reference in New Issue
Block a user