LeoColman / Petals

🌻 The Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're using.
GNU Affero General Public License v3.0
82 stars 33 forks source link

♻️ Refactor interpolator and repository implementation #562

Closed LeoColman closed 5 months ago

LeoColman commented 5 months ago

This commit refactors the interpolator classes DiscomfortInterpolator and ThcConcentrationInterpolator into a single class named Interpolator. This simplifies and generalizes the handling of data points. Moreover, the repository classes DiscomfortRepository and ThcConcentrationRepository have been updated to incorporate this change. This makes the code cleaner and more maintainable.

Signed-off-by: Leonardo Colman Lopes dev@leonardo.colman.com.br