Kamaropoulos / COVID19Py

A tiny Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
https://pypi.org/project/COVID19Py/
GNU General Public License v3.0
84 stars 57 forks source link

DecoratorPatternUpdate #149

Closed chenj233 closed 3 years ago

chenj233 commented 3 years ago

I used different types of cases to decorate the term 'latest'. Now the value in latest will be separated into confirmed cases, dead cases and recovered cases. This action increases the flexibility of the code(more extension). However, the disadvantage of this decorator pattern is that there're some extra classes now. Hope this helps!