Skip to content
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

s/United States/USA #248

Open
Claster opened this issue Mar 23, 2018 · 3 comments
Open

s/United States/USA #248

Claster opened this issue Mar 23, 2018 · 3 comments

Comments

@Claster
Copy link

Claster commented Mar 23, 2018

Hi,

When I imported a csv file from cubecomp.de to cubecomps.com, it showed be an error 'Unknown country "United States".' When I modified csv, replacing it with "USA", it worked. So I believe that when exporting, this country should be "USA".

@fw42
Copy link
Owner

fw42 commented Mar 25, 2018

I'm using the country names from the WCA database, which also uses "United States" (not "USA"), so I think this is a bug in cubecomps.com, not a bug in cubecomp.de?

@Claster
Copy link
Author

Claster commented Nov 3, 2018

Sorry, this thread slipped out of my mind, but now my organizer used cubecomp.de for registrations once more, and I hit this bug again.

When you download the WCA database export, you will see that competitors from US have the country "USA", not "United States". https://www.worldcubeassociation.org/results/misc/export.html

@SAuroux, could you please confirm which string is expected for US competitors?

@SAuroux
Copy link
Contributor

SAuroux commented Nov 3, 2018

I think I see the problem here: cubecomp.de uses the country's "name" instead of the country's "id".

This is the same for most countries, but not for all:

SELECT * FROM Countries where id <> name

image

@fw42 so, instead of using the "name" column from the Countries table in the WCA database, you should be using the "id" column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants