AndreWohnsland / CocktailBerry

Easily serve Cocktails with Raspberry Pi and Python on any cocktail machine 🐍 + 🍸 = 🥳
https://cocktailberry.org
MIT License
58 stars 8 forks source link

Make migrator always respect local config #194

Closed AndreWohnsland closed 1 month ago

AndreWohnsland commented 1 month ago

With some of the latest changes, an internal dependency of the migrator (mig>db>model>config) to the config was introduced, which resulted in an init of the config before the migrator. This was due to the use of a side effect within this class. Now the init of the class does not read in and validated the config, it needs to be explicitly initialized before the start of the main program. Necessary adjustments to local variables were made, to respect the new behavior.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud