MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / _select_exposure_granularity

Function _select_exposure_granularity

api/experimentation/services.py:212–218  ·  view source on GitHub ↗
(
    window_start: datetime,
    window_end: datetime,
)

Source from the content-addressed store, hash-verified

210
211
212def _select_exposure_granularity(
213 window_start: datetime,
214 window_end: datetime,
215) -> ExposureGranularity:
216 if window_end - window_start <= EXPOSURE_HOURLY_BUCKET_MAX_WINDOW:
217 return "hour"
218 return "day"
219
220
221def get_exposure_buckets(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…