EFForg / starttls-backend

STARTTLS Everywhere web backend and checker
https://starttls-everywhere.org/
Other
18 stars 6 forks source link

235 simplify stats query #239

Closed vbrown608 closed 5 years ago

vbrown608 commented 5 years ago

Rather than using a fancy query to pull stats over a rolling window from the DB, this PR adds a DB fn to query stats for a single 14-day window from the db and write them to an aggregated stats table. We can then access them from the aggregated stats table the same way we access aggregated stats from our scans of the top million domains.

Fixes #235

Depends on #237

sydneyli commented 5 years ago

Ready to give this a review after merging with #232 upstream~