mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[flatpak] fix: package sizes float conversion error
This commit is contained in:
@@ -438,12 +438,12 @@ def map_update_download_size(app_ids: Iterable[str], installation: str, version:
|
|||||||
|
|
||||||
if size and len(size) > 1:
|
if size and len(size) > 1:
|
||||||
try:
|
try:
|
||||||
res[related_id[0].strip()] = size_to_byte(float(size[0]), size[1].strip())
|
res[related_id[0].strip()] = size_to_byte(float(size[0].replace(',', '.')), size[1].strip())
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
res[related_id[0].strip()] = size_to_byte(float(size_tuple[0]), size_tuple[1].strip())
|
res[related_id[0].strip()] = size_to_byte(float(size_tuple[0].replace(',', '.')), size_tuple[1].strip())
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user