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

MINOR: Some files contain leading blanks, where than nextcloud complains, and hopefully small feature request #137

Open
fft1010 opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fft1010
Copy link

fft1010 commented Nov 4, 2024

Description of the bug
Some filenames contain occassionally leading blanks, which leads nextcloud to "complain", and it suggest a rename.

To Reproduce
Just download. In my case it happened with "Transaktionsbestätigung", for an US stock. It happens rarely, I could not find a pattern. So I suggest to "sanitize" the filename "somehow". My beloved suggestion is below as a feature request.

Environment

  • OS: Mac OS
  • pytr version: 0.3.0

Additional context
I have a lot downloads, as I trade quite often. And I could not find a pattern when it happens. It occurs in a very rare case. If I would like to have a wish, I would like to suggest a more "fixed?" "static" filename like
YYYY-MM-DD-HH-MM-SS-type-tr-transaction-number-description.pdf

where
YYYY-MM-... is the transaction date/time as accurate as you can get it. It would help finding problems.
"type" is "Abrechnung", "Basisinformationsblatt", ...
"tr-transaction-number" looks like 047713ed-84c1-49a1-8331-e6c10e764ad5 which is added if I trade a stock twice or more a day it seems. It is missing the first time, but from than on it is added.
"description" is e.g. "E.L.F. Beauty".

remove all leading blanks, and maybe trailing as well as you cannot "see" them really in the file listings.
replace the test of the blanks with an underscore.

All in all as always: Many thanks for this great piece of software. I can't live without it!

thanks
juergen

@fft1010 fft1010 added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant