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

Purging scanned sheets / moving the project files #188

Open
ysalmon opened this issue Oct 10, 2019 · 2 comments
Open

Purging scanned sheets / moving the project files #188

ysalmon opened this issue Oct 10, 2019 · 2 comments
Milestone

Comments

@ysalmon
Copy link
Contributor

ysalmon commented Oct 10, 2019

What is a correct way to purge the scanned answer sheets of a survey (in case something goes wrong during recognition, I prefer to throw everything out and re-recognize everything) ?

With earlier version of sdaps, I would delete the entire project and regenerate it.
But with the database now being in sqlite format, I feel tempted to just DELETE FROM sheets; and delete the 1.tif, 2.tif, etc. files.
Is this safe ?

Also, if I want to copy/move the project between computers, is it sufficient to copy those *.tif files and the sqlite file (assuming I do not try to generate answer sheets again, but only recognise scanned sheets) ? The JSON in the surveys table references the project folder : what happens if this does not correspond to the actual folder anymore ?

@ysalmon ysalmon changed the title Purging scanned sheets Purging scanned sheets / moving the project files Oct 10, 2019
@benzea
Copy link
Member

benzea commented Oct 10, 2019

Yeah, should be safe. There is also a reset command to delete everything, not sure if that currently works though.

@benzea
Copy link
Member

benzea commented Apr 20, 2023

The JSON in the surveys table references the project folder : what happens if this does not correspond to the actual folder anymore?

Wait, huh? That shouldn't be the case. The survey_dir attribute should not be saved (and is never used).

@benzea benzea added this to the 1.9.14 milestone Apr 20, 2023
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

2 participants