sdenier / Geco

Lightweight desktop application for management of orienteering events
http://sdenier.github.io/Geco
10 stars 6 forks source link

Won't import from archive if no forename #40

Closed ghost closed 9 years ago

ghost commented 9 years ago

When I download an archive of runners from the UK SportIdent website, some of the runners do not have a forename in the CSV file. GecO stops importing runners into the archive at this point.

It also stops importing runners if they haven't provided a national membership number.

Would it be possible to allow import of runners with some missing information?

image1

sdenier commented 9 years ago

Can you drop the CSV file in this issue? It would help me to track down other issues

ghost commented 9 years ago

https://cuoc.soc.srcf.net/docs/2015_SI_Archive.csv

sdenier commented 9 years ago

There is one main issue: the archive manager was designed to hold a database of runner with a national membership, so it expects an archive id. I can make it more robust to accept some empty fields but not the archive id. By running your file, I got only 4900 entries while the file contains 25000 lines.

Where does this base comes from?

Other issues from your file:

ghost commented 9 years ago

I downloaded the file from the SportIdent UK website. There were several different options (OE2003, OE2010) and I chose the OE2003 format as I thought that would probably be what was supported by GecO.

(I can supply a login and password by email if you would like to have a look on the SI website yourself)

The DatabaseId corresponds to British Orienteering membership number. The file includes those people who aren't BO members but do own a SI card. If those without a DatabaseId had 0 in the column would this cause a duplicate ID error?

The category can be exported into Text1 2 or 3 depending on the option I choose on the SportIdent website. From what I read (http://www.fabian4.co.uk/support/ImportExport.aspx Section 5) the age class (e.g. M21) should go into text2. At the largest races there may be several sub classes of M21 (e.g M21E, M21L, M21S) which should go into the 'short' column?

sdenier commented 9 years ago

Yes, password/login would be useful (my gmail starts with simon.denier)

OE2003 is ok.

I need to think about it, but probably I will just set a random archive id for people with a missing id.

For the category, it is just an alternate way to filter competitors and rank them. So the age class is enough, or you can go for sub classes if you want to have a finer grain. Or you could just tell men and women apart if you want...

sdenier commented 9 years ago

The archive can now handle missing fields (names...) as well as missing archive id (will default to an auto-increment id above 999000000). To be released in 2.3.1

There is still an issue with some name using html-encoded entities in the BOF archive, but dealing with them would be costly - and there are only four of them right now. For example : Spudić -> translated to Spudic by hand