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

Add --DB_delete option to clear out the sqlite3 tables of prior_cleaned #33

Open
r3m0chop opened this issue Nov 22, 2019 · 0 comments
Open

Comments

@r3m0chop
Copy link
Collaborator

r3m0chop commented Nov 22, 2019

prior_cleaned is obtained via:
prior_cleaned = self.audit.get(e, study_uid_pk=study_pk))
and is used to retain the same anonymized values (e.g., Accession Number 7, etc.).

However, any newly generated clean values, as from:
cleaned = str('%s %d' % (e.name, self.audit.get_next_pk(e)))
need a way to clear out the DB of old values from previous incarnations of that line, such as those from the current/soon-to-be-previous:
cleaned = ('%s %d' % (e.name, self.audit.get_next_pk(e))).encode('ascii')

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

1 participant