Skip to content

Commit

Permalink
Исправить предупреждение get_all() + .list / .getlist
Browse files Browse the repository at this point in the history
  • Loading branch information
leshchenko1979 committed Mar 25, 2024
1 parent c3d2b58 commit 07af615
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.6"
__version__ = "1.6.7"
6 changes: 3 additions & 3 deletions fast_bitrix24/user_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ class GetAllUserRequest(UserRequestAbstract):
"https://github.com/leshchenko1979/fast_bitrix24/issues/199",
)
def check_special_limitations(self):
if not self.st_method.endswith(".list"):
if not self.st_method.endswith((".list", ".getlist")):
warnings.warn(
"get_all() should be used only with methods that end with '.list'. "
"Use get_by_ID() or call() instead.",
"get_all() should be used only with methods that end with '.list' or '.getlist'. "
"You are using '{self.st_method}'. Use get_by_ID() or call() instead.",
UserWarning,
stacklevel=get_warning_stack_level(TOP_MOST_LIBRARY_MODULES),
)
Expand Down

0 comments on commit 07af615

Please sign in to comment.