Skip to content

Commit 8c51038

Browse files
committed
fix arch linux bug
Error: 'CacheManager' object has no attribute 'get_stale_cached_user_data'
1 parent ed0bbf3 commit 8c51038

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "gitfetch"
7-
version = "1.0.1"
7+
version = "1.0.2"
88
description = "A neofetch-style CLI tool for GitHub statistics"
99
readme = "README.md"
1010
requires-python = ">=3.8"

src/gitfetch/cache.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ def get_stale_cached_entry(self, username: str) -> Optional[
143143
return (user_data, stats_data, cached_at)
144144
except (sqlite3.Error, json.JSONDecodeError, ValueError):
145145
return None
146+
147+
def get_stale_cached_user_data(
148+
self, username: str
149+
) -> Optional[Dict[str, Any]]:
146150
"""
147151
Retrieve cached user data even if expired.
148152

0 commit comments

Comments
 (0)