File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,12 @@ async def get_wiki_header_tree(
193
193
194
194
client = Synapse .get_client (synapse_client = synapse_client )
195
195
196
- response = client .rest_get_paginated_async (
196
+ async for item in client .rest_get_paginated_async (
197
197
uri = f"/entity/{ owner_id } /wikiheadertree2" ,
198
198
limit = limit ,
199
199
offset = offset ,
200
- )
201
-
202
- return response
200
+ ):
201
+ yield item
203
202
204
203
205
204
async def get_wiki_history (
@@ -232,12 +231,12 @@ async def get_wiki_history(
232
231
233
232
client = Synapse .get_client (synapse_client = synapse_client )
234
233
235
- response = client .rest_get_paginated_async (
234
+ async for item in client .rest_get_paginated_async (
236
235
uri = f"/entity/{ owner_id } /wiki2/{ wiki_id } /wikihistory" ,
237
236
limit = limit ,
238
237
offset = offset ,
239
- )
240
- return response
238
+ ):
239
+ yield item
241
240
242
241
243
242
async def get_attachment_handles (
@@ -246,7 +245,7 @@ async def get_attachment_handles(
246
245
* ,
247
246
wiki_version : Optional [int ] = None ,
248
247
synapse_client : Optional ["Synapse" ] = None ,
249
- ) -> List [str , Any ]:
248
+ ) -> List [Dict [ str , Any ] ]:
250
249
"""Get the file handles of all attachments on a wiki page.
251
250
<https://rest-docs.synapse.org/rest/GET/entity/ownerId/wiki2/wikiId/attachmenthandles.html>
252
251
You can’t perform that action at this time.
0 commit comments