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

Adding option to disable the _get_disk_usage #638

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Theenoro
Copy link

@Theenoro Theenoro commented Mar 4, 2024

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.

added a way to disable getDiskUsageInfo
added the config part of get data dir usage
@phil-flip
Copy link

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.

changed options from 1/0 to true/false
changed options from 1/0 to true/false
@Theenoro
Copy link
Author

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.

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.

2 participants