-
Notifications
You must be signed in to change notification settings - Fork 0
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
Catima import/export format #3
Comments
It doesn't look like Python supports creating encrypted ZIP files, and it can only decrypt them very slowly. (see https://docs.python.org/3/library/zipfile.html) Do you think it would be okay to not support encrypting exports (and possibly take a long time to decrypt them), or should I find another way (such as wrapping a command-line program)? @TheLastProject |
Sounds quite okay to me to not support creating encrypted exports. Maybe something to add later if there is demand but I wouldn't bother with it for a first release at all |
Okay, sounds good |
If one card is deleted and another is created, is it okay to reuse the first card's ID for the second card, or are the IDs used to keep cards in order? |
The IDs are implemented in Android as an automatically incrementing primary DB column. I think it is probably best to not reuse IDs, just to keep it consistent for possible future syncing systems. Right now it is just an implementation detail though. |
Okay, sounds good. |
It doesn't look like the export format supports cards with different card and barcode IDs? |
Also, what should be stored if there is no balance? @TheLastProject |
It does. If the barcode ID is different, it is in the export. Otherwise that field is just empty.
Then the balance field should be empty. Here is an example export CSV I use for Android screenshots, maybe it helps.
|
Oh okay. It looks like the export format wiki page shows an old format? It has |
Hmm, I moved the documentation to https://github.com/CatimaLoyalty/Docs by the way, so we can use GitHub issues to track documentation issues and use pull requests. |
Yes, it is in the page about the URL format, but not the one about the export CSV format. |
Ah, the example export is outdated. Good catch. I've created CatimaLoyalty/Docs#1 for that, will probably fix that tomorrow. |
So it looks like 0 for |
Also, is |
The Android client indeed currently sets lastused to 0 if the card has never been opened in the client yet.
I will try to be more explicit in the documentation, probably move the fields to its own page and add 2 columns: "Required in import/export" and "Required in share link". |
This needs to support the Catima import/export format.
The text was updated successfully, but these errors were encountered: