-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
readable receipt file names in default export #1275
Comments
Shell script to rename a directory of already exported 1.zip 2.zip .... into readable .zip file names that Tandoor will still recognize
|
Proposal: In cookbook/integration/default.py line 59 use the sanitized receipt name |
TandoorRecipes#1275 readable receipt file names in default export
Issued a pull request with a fix: |
i think i want to add a "slug" field to recipes which should be unqiue to a recipe. This would also allow to link recipes together after an import, that is currently not possible. i will merge the PR for now as i think this is already an improvement but in the long run i will rewrite this to a "slug" system |
Is your feature request related to a problem? Please describe.
When exporting a single or multiple/all receipts, the individual zip files are currently just named 1.zip, 2,zip, 3.zip,...
Describe the solution you'd like
The name of the receipt with all illegal characters removed and a length limit should be used as the file name.
If this causes collisions, either _1.zip, _2.zip could be added as needed or all receipts get their id number as a postfix.
Additional context
This also allows storing some exported receipts on a shared Nextcloud or other file storage that multiple users share.
Each with their own receipt applications (not all of them Tandoor Receipts) or using the receipts manually. (e.g. by having an exported PDF in each receipt in addition to the machine readable version and the image file.)
The text was updated successfully, but these errors were encountered: