[cli] Fix wrong type in cleanup command

Fixes #378
This commit is contained in:
derrod 2021-12-14 14:30:33 +01:00
parent fa02ed396e
commit 6c35504058

View file

@ -1736,7 +1736,7 @@ class LegendaryCLI:
before = self.core.lgd.get_dir_size()
# delete metadata
logger.debug('Removing app metadata...')
app_names = {}
app_names = set()
for _platform in self.core.get_installed_platforms():
app_names |= set(g.app_name for g in self.core.get_assets(update_assets=False, platform=_platform))
self.core.lgd.clean_metadata(app_names)