dograh/api/db
Abhishek cd20607628
fix: cast usage run filter JSON values to Float instead of Integer (#574)
The duration and tokenUsage numberRange filters cast the JSON text value
to INTEGER, but some rows store call_duration_seconds as a JSON float
(0.0, written by get_call_duration when the pipeline never recorded a
start time). Postgres cannot cast the text '0.0' to integer, so any
duration filter on /organizations/usage/runs failed with
InvalidTextRepresentationError. Cast to FLOAT instead, matching the
duration sort clause, and make get_call_duration return an int so new
rows are written as integers.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 16:58:41 +05:30
..
__init__.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
agent_trigger_client.py fix: make trigger paths globally unique 2026-04-25 19:44:44 +05:30
api_key_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
base_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
campaign_client.py feat: persist split user and bot audio 2026-06-16 15:19:49 +05:30
database.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
db_client.py feat(webhooks): durable retrying delivery for final webhooks (#478) 2026-07-02 21:44:14 +05:30
embed_token_client.py fix: add error in cloudonix cdr report 2026-01-29 20:43:53 +05:30
filters.py fix: cast usage run filter JSON values to Float instead of Integer (#574) 2026-07-23 16:58:41 +05:30
folder_client.py feat: add google stt and tts. add folders to organize agents 2026-05-22 14:36:50 +05:30
integration_client.py feat: add agent skills to review PR (#320) 2026-05-19 17:02:26 +05:30
knowledge_base_client.py fix: enable knowledge base with Dograh config v2 2026-06-25 22:21:11 +05:30
models.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
organization_client.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
organization_configuration_client.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
organization_usage_client.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
reports_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
telephony_configuration_client.py feat: support inbound vonage calls (#480) 2026-06-29 16:27:19 +05:30
telephony_phone_number_client.py feat: agent stream for cloudonix OPBX (#261) 2026-05-02 15:53:58 +05:30
tool_client.py feat: add end_call tool (#118) 2026-01-14 16:40:40 +05:30
user_client.py chore: update documentation 2026-06-19 18:11:35 +05:30
webhook_credential_client.py Feat/Add API Trigger and Webhooks in Agent Builder (#83) 2025-12-22 14:08:30 +05:30
webhook_delivery_client.py feat(webhooks): durable retrying delivery for final webhooks (#478) 2026-07-02 21:44:14 +05:30
workflow_client.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
workflow_recording_client.py feat: allow recordings in tool transitions 2026-04-10 16:18:01 +05:30
workflow_run_client.py fix: move draft and template context handling out of create_workflow_run (#560) 2026-07-21 13:24:51 +05:30
workflow_run_text_session_client.py feat: add chat based testing for voice agent (#308) 2026-05-21 15:20:02 +05:30
workflow_template_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30