reluce/szurubooru-toolkit

upload-media defaults

BiscuitHub opened this issue · 2 comments

Hello,

Is there a way to change the default setting to safe instead of unsafe when uploading using the upload-media script?

Regards,

My non-tech-smooth-brain poked around a bit and changed the script because I couldn't figure it out with config.toml or cli arguments. This should work for me so I'll close this up and link the line I changed on my install.

safety = post.safety if post.safety else 'unsafe'

For reference, I'm using it in Docker and just sent in that one file with a mount.

Good suggestion, I added the option default_safety to the config.toml file. It's included in the tag 0.7.7 and in the newest release on Docker Hub. Cheers!