diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a1142a..638da24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # CHANGELOG +0.2.52 +- add: logs and fix function definition + 0.2.51 - fix: error with query for fetch calls diff --git a/pyproject.toml b/pyproject.toml index ffd423d..c2af737 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "skit-calls" -version = "0.2.51" +version = "0.2.52" description = "Library to fetch calls from a given environment." authors = ["ltbringer "] license = "GPL-3.0-only" diff --git a/skit_calls/calls.py b/skit_calls/calls.py index 3a33608..8c4fd30 100644 --- a/skit_calls/calls.py +++ b/skit_calls/calls.py @@ -65,7 +65,7 @@ def sample( end_date: str, lang: str, domain_url: str, - org_ids: Optional[Set[str]] = None, + org_ids: Optional[List[str]] = [], call_quantity: int = 200, call_type: List[str] = [const.INBOUND, const.OUTBOUND], use_fsm_url: bool = False, diff --git a/skit_calls/data/query.py b/skit_calls/data/query.py index 91cd2ef..82cf9db 100644 --- a/skit_calls/data/query.py +++ b/skit_calls/data/query.py @@ -45,6 +45,10 @@ def gen_random_call_ids( if not ids_: ids_ = None + + logger.info(f"Org id = {ids_}") + logger.info(f"Template id = {template_id}") + excluded_numbers = excluded_numbers.union(const.DEFAULT_IGNORE_CALLERS_LIST) reported_status = 0 if reported else None call_filters = {