Skip to content

Commit

Permalink
refactor: add the pending to the total number of requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Jul 18, 2024
1 parent 48cfc70 commit b4e4c59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/valory/skills/decision_maker_abci/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def n_tools(self) -> int:
@property
def n_requests(self) -> int:
"""Get the total number of requests."""
return sum(acc_info.requests for acc_info in self.accuracy_store.values())
return sum(
acc_info.requests + acc_info.pending
for acc_info in self.accuracy_store.values()
)

@property
def has_updated(self) -> bool:
Expand Down

0 comments on commit b4e4c59

Please sign in to comment.