Skip to content

Commit 0de022c

Browse files
committed
fix: expose APIFY_USER_IS_PAYING env var to the configuration (#507)
Adds `APIFY_USER_IS_PAYING` environmental variable annotation to the configuration. - PR with updated documentation is here: apify/apify-docs#1706 - PR with changes to the `apify-shared-python` (adding the env variable to the shared constants): apify/apify-shared-python#40 - (this is a prerequisite, and it needs to be merged first, then the package here needs to be updated as follow-up)
1 parent 04673f5 commit 0de022c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/apify/_configuration.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,15 @@ class Configuration(CrawleeConfiguration):
334334
),
335335
] = None
336336

337+
user_is_paying: Annotated[
338+
bool,
339+
Field(
340+
alias='apify_user_is_paying',
341+
description='True if the user calling the Actor is paying user',
342+
),
343+
BeforeValidator(lambda val: False if val == '' else val),
344+
] = False
345+
337346
web_server_port: Annotated[
338347
int,
339348
Field(

0 commit comments

Comments
 (0)