Donkie / Spoolman

Keep track of your inventory of 3D-printer filament spools.
MIT License
891 stars 82 forks source link

Edit spool - initial weight gets reset to filament default #477

Open Paul-Damian opened 2 weeks ago

Paul-Damian commented 2 weeks ago

Describe the bug Editing a spool resets the initial_weight to the default one taken from the filament definition

To Reproduce Steps to reproduce the behavior: Installed Spoolman as Docker container, with MariaDB server on the same Debian machine. Klipper/Moonraker are installed on another machine - a Raspberry Pi, making requests trough the network.

Defined a new filament. Set 1000g for the filament, because that's what the manufacturer is selling. Defined a new spool of that filament. Weighted the spool, so I entered 1009 g for it, because no spool is initial exactly the advertised weight. Saved the spool. Spool list shows correctly 0g used weight, 1009g remaining. Edit spool. In the edit form the Initial Weight field shows now 1000g, not 1009. Look in the MariaDB database, initial_weight field shows correctly 1009. At every refresh or entering the spool edit for a fraction of a second it shows 1009, but it will be overwritten with 1000. This appears 9 times out of ten, occasionally it shows the correct value.

Spoolman Host (please complete the following information):

Desktop (please complete the following information):

Paul-Damian commented 21 hours ago

Made also a little screen record: rec

nikstohn commented 7 hours ago

Noticed the exact same problem on my install since starting using it with 0.18.1 (on Synology DSM 7 using Container Manager). Also had to refresh the edit pages multiple times to actually get my override values.