We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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_NON_LINKED_TABLE = 'CREATE TABLE %s (id INTEGER PRIMARY KEY AUTOINCREMENT, original, cleaned, UNIQUE(original))' CREATE_LINKED_TABLE = 'CREATE TABLE %s (id INTEGER PRIMARY KEY AUTOINCREMENT, original, cleaned, study INTEGER, UNIQUE(original, study), FOREIGN KEY(study) REFERENCES studyinstanceuid(id))'
and then:
def audit_save(tag, cleaned, study_uid_pk=None): ... try: if tag.name.lower() == 'study instance uid': db.execute(INSERT_OTHER % table_name(tag), (original, cleaned)) return cleaned else: db.execute(INSERT_LINKED % table_name(tag), (original, cleaned, study_uid_pk)) return cleaned except sqlite3.IntegrityError: return audit_get(tag=tag, study_uid_pk=study_uid_pk)
The text was updated successfully, but these errors were encountered:
Could you submit this as a pull request?
Sorry, something went wrong.
No branches or pull requests
and then:
The text was updated successfully, but these errors were encountered: