fix a bug with metadata refresh, clean up and finalize permissions gui
This commit is contained in:
parent
7653eaadad
commit
ccd6939141
5 changed files with 81314 additions and 86897 deletions
|
|
@ -41,6 +41,8 @@ DONE:
|
||||||
- Add per-app permission management GUI
|
- Add per-app permission management GUI
|
||||||
- Add global permission management GUI
|
- Add global permission management GUI
|
||||||
- Add Package information page/section.
|
- Add Package information page/section.
|
||||||
|
- Cleanup permissions GUI
|
||||||
|
- Add permissions override viewing inside per-app permissions view.
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
- Update management GUI (individual apps can already be updated)
|
- Update management GUI (individual apps can already be updated)
|
||||||
|
|
|
||||||
143082
collections_data.json
143082
collections_data.json
File diff suppressed because one or more lines are too long
|
|
@ -795,6 +795,8 @@ class AppstreamSearcher:
|
||||||
else:
|
else:
|
||||||
self._process_system_category(searcher, category, system)
|
self._process_system_category(searcher, category, system)
|
||||||
current_category += 1
|
current_category += 1
|
||||||
|
self.save_collections_data()
|
||||||
|
|
||||||
if self._should_refresh():
|
if self._should_refresh():
|
||||||
self.update_subcategories_data()
|
self.update_subcategories_data()
|
||||||
|
|
||||||
|
|
@ -802,6 +804,10 @@ class AppstreamSearcher:
|
||||||
|
|
||||||
def _process_category(self, searcher, category, current_category, total_categories):
|
def _process_category(self, searcher, category, current_category, total_categories):
|
||||||
"""Process a single category and retrieve its metadata."""
|
"""Process a single category and retrieve its metadata."""
|
||||||
|
|
||||||
|
if self._should_refresh():
|
||||||
|
self._refresh_category_data(searcher, category)
|
||||||
|
|
||||||
json_path = "collections_data.json"
|
json_path = "collections_data.json"
|
||||||
try:
|
try:
|
||||||
with open(json_path, 'r', encoding='utf-8') as f:
|
with open(json_path, 'r', encoding='utf-8') as f:
|
||||||
|
|
@ -810,9 +816,6 @@ class AppstreamSearcher:
|
||||||
except (IOError, json.JSONDecodeError) as e:
|
except (IOError, json.JSONDecodeError) as e:
|
||||||
logger.error(f"Error loading collections data: {str(e)}")
|
logger.error(f"Error loading collections data: {str(e)}")
|
||||||
|
|
||||||
if self._should_refresh():
|
|
||||||
self._refresh_category_data(searcher, category)
|
|
||||||
|
|
||||||
self.refresh_progress = (current_category / total_categories) * 100
|
self.refresh_progress = (current_category / total_categories) * 100
|
||||||
|
|
||||||
def _update_from_collections(self, collections_data, category):
|
def _update_from_collections(self, collections_data, category):
|
||||||
|
|
|
||||||
24113
subcategories_data.json
24113
subcategories_data.json
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue