Skip to content

Commit

Permalink
Исправление для работы с методами, которые не возвращают ["time"]["op…
Browse files Browse the repository at this point in the history
…erating"]
  • Loading branch information
leshchenko1979 committed Mar 25, 2024
1 parent 21377ff commit c3d2b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fast_bitrix24/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.5"
__version__ = "1.6.6"
2 changes: 1 addition & 1 deletion fast_bitrix24/srh.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def add_throttler_records(self, method, params: dict, json: dict):
item_method = cmd_url.split("?")[0]
item_time = json["result_time"][cmd_name]
self.method_throttlers[item_method].add_request_record(item_time)
else:
elif "operating" in json["time"]:
request_run_time = json["time"]["operating"]
self.method_throttlers[method].add_request_record(request_run_time)

Expand Down

0 comments on commit c3d2b58

Please sign in to comment.