Skip to content

Commit 2402df4

Browse files
Automatically update Python SDK
1 parent 1fad25f commit 2402df4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "trophy"
7-
version = "1.13.0"
7+
version = "1.14.0"
88
description = "A Python library for the Trophy API"
99
license = {text = "MIT"}
1010
readme = "README.md"

trophy/types/streak_preferences.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212

1313
class StreakPreferences(UniversalBaseModel):
1414
"""
15-
Per-user streak configuration. Requires streak customization to be enabled in dashboard settings.
15+
Per-user streak configuration. Metric and evaluation mode overrides require streak customization to be enabled in dashboard settings.
16+
"""
17+
18+
enabled: typing.Optional[bool] = pydantic.Field(default=None)
19+
"""
20+
Whether streaks are calculated for this user. When false, the user's streak is always 0 and streak webhooks and notifications are not sent.
1621
"""
1722

1823
evaluation_mode: typing_extensions.Annotated[

0 commit comments

Comments
 (0)