From db9b03416ba405d5ee749b612888a7653a7ad918 Mon Sep 17 00:00:00 2001 From: pakkinlau Date: Wed, 18 Oct 2023 18:03:24 +0800 Subject: [PATCH] 0.3.9, updasting json handler and also minor typo in json format --- gites/subpackage/datastore_json_handler.py | 2 +- gites/subpackage/example.json | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gites/subpackage/datastore_json_handler.py b/gites/subpackage/datastore_json_handler.py index 18790fa..a829fc2 100644 --- a/gites/subpackage/datastore_json_handler.py +++ b/gites/subpackage/datastore_json_handler.py @@ -52,7 +52,7 @@ def load_datastore_json(self): print("it is an empty json. creating structure for it...") existing_data["repositories"] = [] # case 4: if "root_directory" is not specified in the datastore json. - if "root_directory" not in existing_data: + if "root_directories" not in existing_data: raise SystemExit(f"Terminating due to the root directory of your git repository folders are not properly defined in your datastore json: {self.gites_datastore_json_location}") # finally return data return existing_data diff --git a/gites/subpackage/example.json b/gites/subpackage/example.json index a7c2c2c..0a952cc 100644 --- a/gites/subpackage/example.json +++ b/gites/subpackage/example.json @@ -9,5 +9,5 @@ "root_directories": { "linux": "/home/kin/All_github_repos/", "windows": "C:\\Users\\Kin\\All_github_repos\\" - }, + } } \ No newline at end of file diff --git a/setup.py b/setup.py index e9dd34a..afd2262 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='gites', - version='0.3.8', + version='0.3.9', description='gites is the home of all developers. It provides bulk clone, bulk push, bulk pull etc. Contact me with my discord ID: pakkin.lau', long_description=open('README.md').read(), long_description_content_type='text/markdown',