summaryrefslogtreecommitdiff
path: root/src/srht_contrib/services
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-11 18:54:01 -0500
committerChristian Cleberg <[email protected]>2026-04-11 18:54:01 -0500
commit90e61ed3e8e765ff5557bc59a6a7b141124dba01 (patch)
tree8d76a215116c7f8ae9c31170c03226af6bccf225 /src/srht_contrib/services
parent01c1b50541b0dc1d42cbdaa90052f6b94ceba20c (diff)
downloadhutch-stats-90e61ed3e8e765ff5557bc59a6a7b141124dba01.tar.gz
hutch-stats-90e61ed3e8e765ff5557bc59a6a7b141124dba01.tar.bz2
hutch-stats-90e61ed3e8e765ff5557bc59a6a7b141124dba01.zip
refactor: retain and backfill only the last year of activity
Diffstat (limited to 'src/srht_contrib/services')
-rw-r--r--src/srht_contrib/services/aggregator.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/srht_contrib/services/aggregator.py b/src/srht_contrib/services/aggregator.py
index 4973f16..32baebd 100644
--- a/src/srht_contrib/services/aggregator.py
+++ b/src/srht_contrib/services/aggregator.py
@@ -65,9 +65,6 @@ class ContributionAggregator:
is_recent_window_backfilled=calendar.is_recent_window_backfilled,
recent_backfill_state=calendar.recent_backfill_state,
recent_backfill_completed_at=calendar.recent_backfill_completed_at,
- is_backfilled=calendar.is_backfilled,
- backfill_state=calendar.backfill_state,
- backfill_completed_at=calendar.backfill_completed_at,
)
def _index_metadata(self, db: Session, actor: str) -> ContributionIndexMetadata:
@@ -90,9 +87,6 @@ class ContributionAggregator:
is_recent_window_backfilled=(tracked_actor.recent_backfill_status == "completed") if tracked_actor is not None else False,
recent_backfill_state=(tracked_actor.recent_backfill_status if tracked_actor is not None else "pending"),
recent_backfill_completed_at=tracked_actor.recent_backfill_completed_at if tracked_actor is not None else None,
- is_backfilled=(tracked_actor.backfill_status == "completed") if tracked_actor is not None else False,
- backfill_state=(tracked_actor.backfill_status if tracked_actor is not None else "pending"),
- backfill_completed_at=tracked_actor.backfill_completed_at if tracked_actor is not None else None,
)
def _query_daily_aggregates(self, db: Session, actor: str, start: date, end: date) -> list[DailyAggregate]: