File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/apify_client/clients/resource_clients Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ def charge(
237
237
"""Charge for an event of a Pay-Per-Event Actor run.
238
238
239
239
TODO: docs url
240
+ https://github.com/apify/apify-client-python/issues/305
240
241
241
242
Returns:
242
243
dict: Status and message of the charge event.
@@ -258,7 +259,7 @@ def charge(
258
259
}
259
260
),
260
261
)
261
- return response .json ()
262
+ return parse_date_fields ( pluck_data ( response .json ()) )
262
263
263
264
264
265
class RunClientAsync (ActorJobBaseClientAsync ):
@@ -484,6 +485,7 @@ async def charge(
484
485
"""Charge for an event of a Pay-Per-Event Actor run.
485
486
486
487
TODO: docs url
488
+ https://github.com/apify/apify-client-python/issues/305
487
489
488
490
Returns:
489
491
dict: Status and message of the charge event.
@@ -505,4 +507,4 @@ async def charge(
505
507
}
506
508
),
507
509
)
508
- return response .json ()
510
+ return parse_date_fields ( pluck_data ( response .json ()) )
You can’t perform that action at this time.
0 commit comments