fix: Didn't parse JSON

This commit is contained in:
Inex Code 2024-12-21 21:11:43 +03:00
parent ecd284fb9a
commit e62bd2b2e7
No known key found for this signature in database

View file

@ -4,6 +4,7 @@ import logging
import base64
import typing
import subprocess
import json
from typing import List
from os import path, remove
from os import makedirs
@ -305,7 +306,7 @@ def get_services() -> List[Service]:
if path.exists(SP_SUGGESTED_MODULES_PATH):
# It is a file with a JSON array
with open(SP_SUGGESTED_MODULES_PATH) as f:
suggested_modules = f.read().splitlines()
suggested_modules = json.load(f)
for module in suggested_modules:
if module in service_ids:
continue