Updated read json from utils

This commit is contained in:
Dimitris Zlatanidis 2024-04-01 10:54:14 +03:00
parent a00966e9d5
commit 7027f07272

View file

@ -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))