1
0
mirror of https://github.com/ltcptgeneral/cs239-caching.git synced 2025-04-01 12:33:25 +00:00

remove print statements from sieve, update gitignore, minor fix to test utils

This commit is contained in:
Arthur Lu 2025-03-04 06:24:13 +00:00 committed by root
parent 32ac22806c
commit 839e1b8bd7
3 changed files with 6 additions and 6 deletions

2
.gitignore vendored

@ -7,6 +7,7 @@ __pycache__/
# Ignore database files (TinyDB JSON)
database.json
temp_DB.json
# Ignore environment variables file (if used)
.env
@ -22,4 +23,3 @@ database.json
# Ignore MacOS system files
.DS_Store

@ -18,13 +18,13 @@ class SieveCache(Cache):
self.hand = None
def print_cache_state(self):
print("Current cache state:")
#print("Current cache state:")
node = self.head
if not node:
print("Cache is empty.")
#print("Cache is empty.")
return
for _ in range(len(self.cache)):
print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
#print(f"Key: {node.key}, Value: {node.value}, Visited: {node.visited}")
node = node.next
if node == self.head:
break