From e199d510aab33639ee0346038fbe779fc560b792 Mon Sep 17 00:00:00 2001 From: d-shree <101096921+d-shree@users.noreply.github.com> Date: Fri, 22 Dec 2023 12:59:16 +0530 Subject: [PATCH] Fix issue when the client id is absent (#27) * Fix issue when the client id is absent * Update version in pyproject.yaml --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- secrets.dvc | 4 ++-- skit_calls/data/query.py | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 553eaaa..d306d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # CHANGELOG +0.2.50 +- fix: error when client_id absent + 0.2.49 - add: Multiple flow id support for fetch calls - update: Credentials to access FSM db diff --git a/pyproject.toml b/pyproject.toml index 9aed3fe..838a104 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "skit-calls" -version = "0.2.49" +version = "0.2.50" description = "Library to fetch calls from a given environment." authors = ["ltbringer "] license = "GPL-3.0-only" diff --git a/secrets.dvc b/secrets.dvc index 942b81d..e87a96d 100644 --- a/secrets.dvc +++ b/secrets.dvc @@ -1,5 +1,5 @@ outs: -- md5: 4a03ddfb64863843358d879baa872af6.dir - size: 5552 +- md5: a54ebfb809755748297b44f75fd426a7.dir + size: 5556 nfiles: 5 path: secrets diff --git a/skit_calls/data/query.py b/skit_calls/data/query.py index 873199d..3599533 100644 --- a/skit_calls/data/query.py +++ b/skit_calls/data/query.py @@ -42,11 +42,11 @@ def gen_random_call_ids( random_id_limit: int = const.DEFAULT_CALL_QUANTITY, ): excluded_numbers = set(excluded_numbers) or set() - ids_ = set(ids_) or set() - if not ids_ or template_id : + + if ids_: + ids_= tuple(set(ids_)) + else: ids_ = None - elif ids_ and not template_id: - ids_= tuple(ids_) excluded_numbers = excluded_numbers.union(const.DEFAULT_IGNORE_CALLERS_LIST) reported_status = 0 if reported else None call_filters = {