ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

Statistics class in app/location #395

Closed ecypeng closed 3 years ago

ecypeng commented 3 years ago

What it does

Designed an aggregate pattern for app/location so that statistic (confirmed, death, recovered) can only be accesses through the root.

Why this is important

This approach garentees the consistency of changes to statistics.