Open SMAW opened 1 year ago
Sorry for the late reply. Easter and all that.
So what you would like to see is some kind of CSV specification for generic imports? I think that should definately be doable. Might just reuse fuelly's format or something. I'll look into it
@AlfHou I’d suggest using the structs for the fillups and expenses from the go app.
I’m also working on a generic import functionality. Allowing the user to select which field corresponds with the fillup/exspense struct.
This is still needed.
It’s unclear what format the generic csv importer needs for its fields, e.g. datetime-format, decimal point comma or dot, quotes around numbers, leading zeroes and int vs float values (42.0 vs 42)
@vKnmnn hope this helps for now.
Any value that has a decimal must be a delimited by a dot
Datetime is any format that javascript can use to create a date using new Date()
Numbers do not need a leading zero and it doesn't matter if they're quoted or not
Thank you @alienp4nda. We might want to add a description for this in the importer itself. I'll try to add this during the weekend.
I'm trying to import my own data (own SQL table) to Hammond, but I don't have a clue how the CSV should look like.
Maybe describe how the CSV should look like for an import (or maybe making 2 example CSV's in the repo), so people can modify/change/create their own CSV to import to the system.