mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agent_trigger_client.py | ||
| api_key_client.py | ||
| base_client.py | ||
| campaign_client.py | ||
| database.py | ||
| db_client.py | ||
| embed_token_client.py | ||
| filters.py | ||
| folder_client.py | ||
| integration_client.py | ||
| knowledge_base_client.py | ||
| models.py | ||
| organization_client.py | ||
| organization_configuration_client.py | ||
| organization_usage_client.py | ||
| reports_client.py | ||
| telephony_configuration_client.py | ||
| telephony_phone_number_client.py | ||
| tool_client.py | ||
| user_client.py | ||
| webhook_credential_client.py | ||
| webhook_delivery_client.py | ||
| workflow_client.py | ||
| workflow_recording_client.py | ||
| workflow_run_client.py | ||
| workflow_run_text_session_client.py | ||
| workflow_template_client.py | ||