pbogre / jetlog

Personal flight tracker and viewer
https://github.com/pbogre/jetlog
GNU General Public License v2.0
177 stars 7 forks source link

Refactor backend `from_database` method #11

Closed pbogre closed 1 month ago

pbogre commented 1 month ago

Currently the from_database works fine, but it requires all fields in all classes to be optional (i.e. be None by default). This is because of the line real = cls().

This should be changed to allow required fields in backend models.