From 7027f0727211f3bd551247b540cac43ab6b25302 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 1 Apr 2024 10:54:14 +0300 Subject: [PATCH] Updated read json from utils --- slpkg/install_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))