We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f8171f commit 83d69e9Copy full SHA for 83d69e9
pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
5
[project]
6
name = "loe_simp_app_fw"
7
-version = "2.4.1"
+version = "2.5.0"
8
authors = [
9
{ name="loeeeee", email="[email protected]" },
10
]
src/loe_simp_app_fw/request_handler.py
@@ -26,7 +26,16 @@ def reset(self) -> None:
26
self._counter = 0
27
28
def shouldContinue(self) -> bool:
29
- return self._counter < self.threshold
+ 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
39
40
class RetryLimitReached(Exception):
41
pass
0 commit comments