diff --git a/backend/endpoints/sockets/scan.py b/backend/endpoints/sockets/scan.py index 484518352..0b29d0102 100644 --- a/backend/endpoints/sockets/scan.py +++ b/backend/endpoints/sockets/scan.py @@ -168,7 +168,7 @@ async def scan_platforms( # Same protection for platforms if len(fs_platforms) > 0: log.info("Purging platforms not found in the filesystem:") - log.info("\n - ".join(fs_platforms)) + log.info("\n".join([f" - {platform}" for platform in fs_platforms])) db_platform_handler.purge_platforms(fs_platforms) log.info(emoji.emojize(":check_mark: Scan completed ")) @@ -271,13 +271,13 @@ async def _identify_platform( if len(fs_roms) > 0: log.info("Purging roms not found in the filesystem:") - log.info("\n - ".join([rom["file_name"] for rom in fs_roms])) + log.info("\n".join([f" - {rom['file_name']}" for rom in fs_roms])) db_rom_handler.purge_roms(platform.id, [rom["file_name"] for rom in fs_roms]) # Same protection for firmware if len(fs_firmware) > 0: log.info("Purging firmware not found in the filesystem:") - log.info("\n - ".join(fs_firmware)) + log.info("\n".join([f" - {fw}" for fw in fs_firmware])) db_firmware_handler.purge_firmware(platform.id, [fw for fw in fs_firmware]) return scan_stats