From da959900abb5c1ed3bea23b9dd8ce45b86d4e726 Mon Sep 17 00:00:00 2001 From: sachaarbonel Date: Thu, 9 Nov 2023 10:04:35 +0100 Subject: [PATCH] python: update query calls --- .../video/docusaurus/docs/api/basics/calls.mdx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx index ffac59be..e6995227 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx @@ -104,7 +104,7 @@ client.video.queryCalls({ ```py -client.query_calls( +client.video.query_calls( filter_conditions={'backstage': {'$eq': False}} ) ``` @@ -132,6 +132,12 @@ client.video.queryCalls({ ```py +from datetime import datetime, timedelta +min30s = timedelta(minutes=30) +in_next_30_mins = datetime.now() + min30s +client.video.query_calls( + filter_conditions={'starts_at': {'$gt': in_next_30_mins.isoformat()}} +) ``` @@ -154,7 +160,9 @@ client.video.queryCalls({ ```py - +client.video.query_calls( + filter_conditions={'ongoing': {'$eq': True}} +) ```