Skip to content

Commit fee0be2

Browse files
tw4likreymer
authored andcommitted
Add pausedExpiryMinutes to /settings API endpoint
1 parent 065f1bc commit fee0be2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

backend/btrixcloud/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class SettingsResponse(BaseModel):
124124

125125
localesEnabled: Optional[List[str]]
126126

127+
pausedExpiryMinutes: int
128+
127129

128130
# ============================================================================
129131
# pylint: disable=too-many-locals, duplicate-code
@@ -158,6 +160,7 @@ def main() -> None:
158160
if os.environ.get("LOCALES_ENABLED")
159161
else None
160162
),
163+
pausedExpiryMinutes=int(os.environ.get("PAUSED_CRAWL_LIMIT_MINUTES", 10080)),
161164
)
162165

163166
invites = init_invites(mdb, email)

backend/test/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ def test_api_settings():
5151
"salesEmail": "",
5252
"supportEmail": "",
5353
"localesEnabled": None,
54+
"pausedExpiryMinutes": 10080,
5455
}

0 commit comments

Comments
 (0)