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

Aggregation #1 #422

Closed Billa32 closed 3 years ago

Billa32 commented 3 years ago

The codes were repeated so the first aggregation i did was create a seperate function for it. in the file path ...\app\routers\v2.py and i added a new function get_latest_Data and thus i changed the code for return in function to "get_latest"and finally changed for return in function to "get_locations"

Kilo59 commented 3 years ago

This could be worthwhile. On my phone now so I can't see it context very well but I will look again.