issues
search
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
Moved country codes to be provided by singleton
#429
Closed
gsinghkular
closed
3 years ago
gsinghkular
commented
3 years ago
Applied Singleton design pattern to provide the country codes
Removed Country codes dictionary from global scope
Added unit test to test singleton's id
Refactored existing code to get country code from singleton