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

Create a new action to automatically substitute contents #18

Open
clinaresl opened this issue Feb 5, 2022 · 0 comments
Open

Create a new action to automatically substitute contents #18

clinaresl opened this issue Feb 5, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@clinaresl
Copy link
Owner

Many times, in sps2db it might happen that some contents are unnecessary so that it might be useful to substitute them by other data in the database. This happens for example in the grades of UC3M where the absence of a score is given with '-' by Aula Global while the database needs a different value such as 0.

For this a command inspired by sed (or better said, copied from sed) is suggested:

"s/old-data/new-data"

where sps-data is a regular expression. In case it matches the input from the spreadsheet then it is automatically substituted by the literal new-data. For example, to substitute '-' by 0 one could define a column as follows:

ex1 $A2:$A. integer s/-/0;

@clinaresl clinaresl added the enhancement New feature or request label Feb 5, 2022
@clinaresl clinaresl self-assigned this Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant