Open Greeengooo opened 1 month ago
Add Readme for the repository. You should cover:
What is the purpose of the README in alembic directory?
While pass
is absoluterly valid approach, for better readability you can also use ...
https://github.com/Ly-Olia/WeatherApp/blob/2cba11d1418905270cca649282e451f208273c43/app/schemas.py#L56-L57
So it will look like this:
class SomeClass:
...
Why from_attributes = True
is needed here?
https://github.com/Ly-Olia/WeatherApp/blob/2cba11d1418905270cca649282e451f208273c43/app/schemas.py#L24-L25
crud file refers to CreateReadUpdateDelete that is basically all operations performed over the storage. I would move all the functions that are making external requests to the API to a separate file. Also functions that are not related t database or API can be moved to a file called utils.py
.
https://github.com/Ly-Olia/WeatherApp/blob/2cba11d1418905270cca649282e451f208273c43/app/crud.py#L1
Great work! ❤️