updating cycle close request feature to get approval from national dashboard instead auto from system
This commit is contained in:
1 parent
3a868cf1db
commit
e4dbfd0252
31 files changed
+1322
-182
No files matched your search
@@ -104,10 +104,10 @@ def daily_totals_from_combined_history(
|
||||
|
||||
|
||||
def cycle_history_window(cycle: Cycle, *, today: date | None = None) -> tuple[date, date]:
|
||||
"""Inclusive date window for history upserts."""
|
||||
"""Inclusive date window for history upserts (calendar today while open)."""
|
||||
if today is None:
|
||||
today = timezone.localdate()
|
||||
end = min(today, cycle.end_date)
|
||||
end = cycle.operational_end_date(today=today)
|
||||
return cycle.start_date, end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user