stashapp / CommunityScripts

This is a public repository containing plugin and utility scripts created by the Stash Community.
https://docs.stashapp.cc/add-ons/
GNU Affero General Public License v3.0
191 stars 147 forks source link

Fix syntax error in timestampTrade.py #436

Open Written2001 opened 2 months ago

Written2001 commented 2 months ago

This line leads to an syntax error: "unmatched '['" due to the usage of double quotes for both the f-string and the inner dictionary key. The proposed solution fixes that.

Maista6969 commented 2 months ago

Nested quotes are supported in Python 3.12 and above

Written2001 commented 2 months ago

Not sure if it's the default but the python version in my stash docker container is 3.11.2

feederbox826 commented 2 months ago

Ah. Nerethos is still on py3.11.2

Tweeticoats commented 2 months ago

Another bug that needs to be fixed: the "path" setting is not configured in the defaults. The UI has this as "Download parent folder" but it is not set until it is modified so it needs to be added to the settings default object. Could you also add the following to the settings on line 1335 "path": "/download_dir/tt-auto",

Written2001 commented 2 months ago

Ah. Nerethos is still on py3.11.2

Yeah the Image is based on debian bookworm which has no prebuild deb packages for python3.12