Skip to content

Commit 25e7e00

Browse files
committed
Fix types, add todo url
1 parent d912d6e commit 25e7e00

File tree

1 file changed

+4
-2
lines changed
  • src/apify_client/clients/resource_clients

1 file changed

+4
-2
lines changed

src/apify_client/clients/resource_clients/run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def charge(
237237
"""Charge for an event of a Pay-Per-Event Actor run.
238238
239239
TODO: docs url
240+
https://github.com/apify/apify-client-python/issues/305
240241
241242
Returns:
242243
dict: Status and message of the charge event.
@@ -258,7 +259,7 @@ def charge(
258259
}
259260
),
260261
)
261-
return response.json()
262+
return parse_date_fields(pluck_data(response.json()))
262263

263264

264265
class RunClientAsync(ActorJobBaseClientAsync):
@@ -484,6 +485,7 @@ async def charge(
484485
"""Charge for an event of a Pay-Per-Event Actor run.
485486
486487
TODO: docs url
488+
https://github.com/apify/apify-client-python/issues/305
487489
488490
Returns:
489491
dict: Status and message of the charge event.
@@ -505,4 +507,4 @@ async def charge(
505507
}
506508
),
507509
)
508-
return response.json()
510+
return parse_date_fields(pluck_data(response.json()))

0 commit comments

Comments
 (0)