szurubooru icon indicating copy to clipboard operation
szurubooru copied to clipboard

Adding option to disable the _get_disk_usage

Open Theenoro opened this issue 1 year ago • 2 comments

It's solving this issue #449 in https://github.com/rr-/szurubooru/issues/449#issuecomment-1416593833

I've added the configuration part and the python part to disable the function (_get_disk_usage) in the info api. It's useful to boost up the page speed in the trade of the disk usage indicator.

Theenoro avatar Mar 04 '24 00:03 Theenoro

Thank you for the PR. I don't code Python, but looking at other code lines it might be more standardized, when using true/false as the value and removing == 1.

phil-flip avatar Mar 17 '24 20:03 phil-flip

Thank you for the PR. I don't code Python, but looking at other code lines it might be more standardized, when using true/false as the value and removing == 1.

yes, but I also found something in the options with yes/no. I actually dunno why I used 1/0 instead of true/false but I've changed it.

Theenoro avatar Mar 18 '24 21:03 Theenoro