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

Remove raw spreadsheet rows and support multiple indexes #62

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

rokostik
Copy link
Contributor

@rokostik rokostik commented Dec 14, 2023

This PR changes 4 things:

  • removes raw spreadsheet rows (csv now loads into rye native rows)
  • add support for multiple indexes in a spreadsheet
  • adds spreadsheet columns? function
  • moves transforming raw values to rye values to utils (needed because of a cyclic import in spreadsheet.go otherwise)

res := AddIndexes(ps, &spr, colWords)
if res != nil {
return res
}
return spr
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When adding indexes it doesn't add them in place and you have to reassign the spreadsheet (this was also the behaviour before my changes). I couldn't get it to change in place, any ideas?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, not right now. I will take note and look at it. Otherwise not changing values in place is sort of default behavior for Rye.

@refaktor refaktor merged commit 2880a7a into refaktor:main Dec 14, 2023
2 checks passed
@refaktor
Copy link
Owner

Great, thank you!!

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

Successfully merging this pull request may close these issues.

2 participants