From 748a1caad9bddcdae0e268fdff1c902dd0292ca9 Mon Sep 17 00:00:00 2001 From: dd Date: Sun, 13 Oct 2024 17:31:54 +0200 Subject: circinus refactoring - updated cache/storage class --- new/lib/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'new/lib/github.py') diff --git a/new/lib/github.py b/new/lib/github.py index 42ea3d7..fd111d1 100644 --- a/new/lib/github.py +++ b/new/lib/github.py @@ -12,7 +12,7 @@ import yaml sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))) from lib.helpers import setup_logging -from lib.cache import Cache +from lib.objectstorage import ObjectStorage from lib.helpers import refuse_root, data_dir @@ -171,7 +171,7 @@ if __name__ == "__main__": github = GitHub() - cache = Cache(os.path.join(data_dir, "github-vyos-cache.json"), dict, {}) + cache = ObjectStorage(os.path.join(data_dir, "github-vyos-cache.json"), dict, {}) repositories = cache.callback("repos", callback=lambda: github.find_org_repositories("vyos")) pprint(github.analyze_repositories_workflow("vyos", repositories, "circinus")) -- cgit v1.2.3