Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DB Clean plugin new devices deletion bug #498

Merged

Conversation

jhonderson
Copy link

Fixes a bug introduced in this refactor commit which caused the DB cleaning script to delete all new devices even if the configuration parameter hourstokeepnewdevice has a value of 0.

The cause is that before the refactor the parameters of the function cleanup_database were integer values, however after the refactor they are string values, causing this issue and potentially other unexpected behaviors.

This may be related to #474 and #481

@jhonderson jhonderson changed the title Fix DB Clean plugin device deletion bug Fix DB Clean plugin new devices deletion bug Nov 9, 2023
@jokob-sk jokob-sk merged commit ee35f35 into jokob-sk:main Nov 10, 2023
@jokob-sk jokob-sk mentioned this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants