diff --git a/slpkg/install_data.py b/slpkg/install_data.py index f903f524..eeda2c7a 100644 --- a/slpkg/install_data.py +++ b/slpkg/install_data.py @@ -40,7 +40,7 @@ class InstallData(Configs): last_update_json[repo]: dict = last_date if self.repos.last_update_json.is_file(): - last_update_json: dict = json.loads(self.repos.last_update_json.read_text(encoding='utf-8')) + last_update_json: dict = self.utils.read_json_file(self.repos.last_update_json) last_update_json[repo] = last_date self.repos.last_update_json.write_text(json.dumps(last_update_json, indent=4))