Skip to content

Commit 83d69e9

Browse files
committed
add new feature
1 parent 6f8171f commit 83d69e9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "loe_simp_app_fw"
7-
version = "2.4.1"
7+
version = "2.5.0"
88
authors = [
99
{ name="loeeeee", email="[email protected]" },
1010
]

src/loe_simp_app_fw/request_handler.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ def reset(self) -> None:
2626
self._counter = 0
2727

2828
def shouldContinue(self) -> bool:
29-
return self._counter < self.threshold
29+
return self._counter < self.threshold
30+
31+
def isFirstTime(self) -> bool:
32+
"""
33+
Help determine if cache should be used or ignored
34+
35+
Returns:
36+
bool: _description_
37+
"""
38+
return self._counter == 0
3039

3140
class RetryLimitReached(Exception):
3241
pass

0 commit comments

Comments
 (0)