Skip to content

Commit 9296213

Browse files
aapelivclaude
andcommitted
Comment logged-out anonymous evaluation in _get_growthbook
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent ddc8c58 commit 9296213

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/backend/src/couchers/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def _get_feature_value[T](self, flag_key: str, default: T) -> T:
207207

208208
def _get_growthbook(self) -> GrowthBook:
209209
if self._growthbook is None:
210+
# _user_id is None when logged out: evaluate anonymously, falling through to defaults.
210211
self._growthbook = experimentation._create_evaluator(self._user_id)
211212
return self._growthbook
212213

0 commit comments

Comments
 (0)