Skip to content

Commit

Permalink
Add logger statement and fix function definition (#29)
Browse files Browse the repository at this point in the history
* Add logs for debugging, fix func definition

* Update version
  • Loading branch information
d-shree committed Dec 23, 2023
1 parent d88674b commit 25881ff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# CHANGELOG
0.2.52
- add: logs and fix function definition

0.2.51
- fix: error with query for fetch calls

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <amresh.venugopal@gmail.com>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion skit_calls/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions skit_calls/data/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 25881ff

Please sign in to comment.