Skip to content

Commit fdb1276

Browse files
authored
fix: Fix local charging log dataset name (#649)
Closes: #648
1 parent 8abb03a commit fdb1276

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/02_concepts/12_pay_per_event.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ It is encouraged to test your monetization code on your machine before releasing
4747
ACTOR_TEST_PAY_PER_EVENT=true python -m youractor
4848
```
4949

50-
If you also wish to see a log of all the events charged throughout the run, the Apify SDK keeps a log of charged events in a so called charging dataset. Your charging dataset can be found under the `charging_log` name (unless you change your storage settings, this dataset is stored in `storage/datasets/charging_log/`). Please note that this log is not available when running the Actor in production on the Apify platform.
50+
If you also wish to see a log of all the events charged throughout the run, the Apify SDK keeps a log of charged events in a so called charging dataset. Your charging dataset can be found under the `charging-log` name (unless you change your storage settings, this dataset is stored in `storage/datasets/charging-log/`). Please note that this log is not available when running the Actor in production on the Apify platform.
5151

5252
Because pricing configuration is stored by the Apify platform, all events will have a default price of $1.

src/apify/_charging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ActorPricingInfo:
118118
class ChargingManagerImplementation(ChargingManager):
119119
"""Implementation of the `ChargingManager` Protocol - this is only meant to be instantiated internally."""
120120

121-
LOCAL_CHARGING_LOG_DATASET_NAME = 'charging_log'
121+
LOCAL_CHARGING_LOG_DATASET_NAME = 'charging-log'
122122

123123
def __init__(self, configuration: Configuration, client: ApifyClientAsync) -> None:
124124
self._max_total_charge_usd = configuration.max_total_charge_usd or Decimal('inf')

0 commit comments

Comments
 (0)