Fix: Flatpak 1.2.X application names not showing properly

This commit is contained in:
Vinicius Moreira
2019-06-18 18:47:31 -03:00
parent 4c55e7a617
commit 10e69d1c3c
2 changed files with 11 additions and 8 deletions

View File

@@ -6,13 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.2.0] - 2019-06-18
### Features
- Management panel shows update commands streams
- Management panel status label is "orange" now
- Management panel shows update commands streams
- Management panel status label is "orange" now
### Fixes
- Application name not properly showing for Flatpak 1.2.X
## [0.1.0] - 2019-06-14
### Features
- System tray icon.
- Applications management window.
- Support for the following locales: PT, EN, ES.
- System notification for new updates.
- Update applications.
- System tray icon.
- Applications management window.
- Support for the following locales: PT, EN, ES.
- System notification for new updates.
- Update applications.

View File

@@ -23,7 +23,7 @@ def app_str_to_json(line: str, version: str) -> dict:
app['name'] = ref_data[0].split('.')[-1]
app['version'] = None
elif '1.2' <= version < '1.3':
app = {'name': app_array[0][1].split('.')[-1],
app = {'name': app_array[1].strip().split('.')[-1],
'id': app_array[1],
'version': app_array[2],
'branch': app_array[3],