-
Notifications
You must be signed in to change notification settings - Fork 3
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
Document usage of ReadSpreadsheet #62
Comments
I've played around a bit, and it turns out (quite logically) the identifiers need to exist in the person's data; I'll send a PR with a few changes related to authentication soon, but basically this seems to work as I wanted:
Which can be used in a script like this (I've intentionally put the spreadsheet link as it is public):
|
Hey Philippe, You've got it! Thanks for putting up with the lack of documentation :) A few details:
Let me know if you have any more questions :) |
Thanks a whole lot for the answers and explanations! I intend to do a proper competition example at the end of the month on a "small" competition to test out of few stuff for euros; I'll make sure to not include non public information and to share/document everything publicly and it should be more than enough for this issue :) |
At the moment this is more a question for which the answer should likely be public: is there any basic example out there of a basic spreadsheet format and the result it provides in person's properties when imported?
I've been shared some private example usage of compscript, but the data in spreadsheets have been appropriately omitted, and now I'm left with a few questions on the format I should target (because importing data dynamically sounds like a great idea for Euros ;)).
Let's take for instance the following data (csv, but separated by ';' intentionally, because of how I think values are parsed in the code):
Reading from the source code, I would guess this results in adding the properties "scramble-events" and "team-kind", respectively holding an array of string and a string, that I would be able to query using respectively
ArrayProperty("scramble-events")
andStringProperty("team-kind")
?The "Some nice thing" column would simply be ignored.
Could you please confirm using this format is enough to identify whom to attach the data to based on the
wca_id
/user_id
fields? (and does it matter if both of them are filled?)What happens if one of the columns' header doesn't have the
ignore:
/identifier:
/property:
prefix?For the record I still intend to run a test competition with a simplified example of basically everything, that could serve as a publicly available showcase of compscript (and for which I could make the spreadsheet used public, hence "fixing" this "issue".
The text was updated successfully, but these errors were encountered: