Skip to content

Commit

Permalink
fix: edge case where depot doesn't have * language but has dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Feb 15, 2024
1 parent e7908fd commit 18f6519
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gogdl/dl/objects/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def calculate_download_size(self):
for depot in self.all_depots:
if not depot.product_id in data:
data[depot.product_id] = dict()
data[depot.product_id]['*'] = {"download_size": 0, "disk_size": 0}
product_data = data[depot.product_id]
for lang in depot.languages:
if not lang in product_data:
Expand Down

0 comments on commit 18f6519

Please sign in to comment.