Skip to content

Commit 6f3fbfb

Browse files
committed
vale github workflow and addressing feedback
1 parent b0de59e commit 6f3fbfb

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/vale-tdbx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
- name: checkout
1313
uses: actions/checkout@v4
1414

15+
- name: Install docutils
16+
run: sudo apt-get install -y docutils
17+
1518
- id: files
1619
uses: masesgroup/retrieve-changed-files@v2
1720
with:

source/data-formats/time-series.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ Create a Time Series Collection
5656
To create and interact with time series collections, you must be
5757
connected to a deployment running {+mdb-server+} 5.0 or later.
5858

59-
You can create a time series collection to store time series data. To create
60-
a time series collection, pass the following arguments to the ``create_collection()``
61-
method:
59+
To create a time series collection, pass the following arguments to the
60+
``create_collection()`` method:
6261

6362
- Name of the new collection to create
6463
- ``timeseries`` argument
@@ -96,19 +95,16 @@ The following example creates a time series collection named ``october2024`` wit
9695

9796
database.create_collection("october2024", timeseries=time_series_options)
9897

99-
To check if you successfully created the collection, you can print out a list of
100-
all collections in the database:
98+
To check if you successfully created the collection, you can get a list of all
99+
collections in your database and filter by collection name.
101100

102101
.. io-code-block::
103102
:copyable: true
104103

105104
.. input::
106105
:language: python
107106

108-
collection_list = database.list_collections()
109-
110-
for c in collection_list:
111-
print(c)
107+
print(list(database.list_collections(filter={'name': 'october2024'})))
112108

113109
.. output::
114110
:language: json
@@ -128,7 +124,6 @@ all collections in the database:
128124
"readOnly": False
129125
}
130126
}
131-
...
132127

133128
.. _pymongo-time-series-write:
134129

0 commit comments

Comments
 (0)