From d144b012cf393ade8d7497b6d2a244111beb07e2 Mon Sep 17 00:00:00 2001
From: Santosh <ch.santoshkumar211@gmail.com>
Date: Sat, 6 May 2023 09:07:23 -0500
Subject: [PATCH] adding WIP

---
 lfu_checker.py | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/lfu_checker.py b/lfu_checker.py
index df10020..c55d4f8 100644
--- a/lfu_checker.py
+++ b/lfu_checker.py
@@ -16,6 +16,20 @@ class LFUChecker:
             access_data = json.load(f)
         return access_data
     
-
+    def get_lfu(self):
+        local_files, s3_files = self.get_files()
+        access_data = self.get_access_data()
+        lfu = {}
+        for file in local_files:
+            if file in access_data:
+                lfu[file] = access_data[file]
+            else:
+                lfu[file] = 0
+        for file in s3_files:
+            if file in access_data:
+                lfu[file] = access_data[file]
+            else:
+                lfu[file] = 0
+        
 
     
\ No newline at end of file
-- 
GitLab