Skip to content

Commit

Permalink
python: update query calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Nov 9, 2023
1 parent fa899ae commit da95990
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docusaurus/video/docusaurus/docs/api/basics/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ client.video.queryCalls({
<TabItem value="py" label="Python">

```py
client.query_calls(
client.video.query_calls(
filter_conditions={'backstage': {'$eq': False}}
)
```
Expand Down Expand Up @@ -132,6 +132,12 @@ client.video.queryCalls({
<TabItem value="py" label="Python">

```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()}}
)

```

Expand All @@ -154,7 +160,9 @@ client.video.queryCalls({
<TabItem value="py" label="Python">

```py

client.video.query_calls(
filter_conditions={'ongoing': {'$eq': True}}
)
```

</TabItem>
Expand Down

0 comments on commit da95990

Please sign in to comment.