Skip to content

Commit

Permalink
new: add reset to statsquery
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed May 18, 2023
1 parent 81e6751 commit 2f079a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions xtlsapi/api_services/stats/get_statsquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


class StatsQuery(BaseService):
def stats_query(self, pattern):
def stats_query(self, pattern,reset=False):
try:
return self.stats_stub.QueryStats(
command_pb2.QueryStatsRequest(
pattern=pattern
pattern=pattern,reset=reset
)
).stat
except grpc.RpcError:
Expand Down
4 changes: 2 additions & 2 deletions xtlsapi/singbox_api_services/stats/get_statsquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


class StatsQuery(BaseService):
def stats_query(self, pattern):
def stats_query(self, pattern,reset=False):
try:
return self.stats_stub.QueryStats(
stats_pb2.QueryStatsRequest(
pattern=pattern
pattern=pattern,reset=reset
)
).stat
except grpc.RpcError:
Expand Down

0 comments on commit 2f079a0

Please sign in to comment.