Web developmentPublished Oct 28
CSV contacts import returns one broken contact
The parser splits on commas while clients export semicolon-separated files.
Description
Contacts importer (`importer.py`) used by `POST /import`.
Problem: our clients export CSV with `;` as the separator (Excel in the RU/EU locale). The parser produces one garbage row instead of the real contacts. Phone numbers must stay strings, blank lines and rows without email must be skipped.
Expected:
- semicolon-separated files parse into individual contacts;
- names with quotes and commas inside survive;
- rows without `name` or `email` are dropped;
- response shape unchanged.
Acceptance: `python -m unittest discover -s tests` passes.
DM me and I'll send a couple of real export files. PayPal or bank transfer, as you prefer.
Skills
- Python
- Flask
- CSV