Closed cbrinson-rise8 closed 1 day ago
if target.is_default:
existing = session.query(Algorithm).filter(Algorithm.is_default == True).first() # noqa
[Link to the line of code](https://github.com/CDCgov/RecordLinker/pull/31/files#:~:text=existing%20%3D%20session.query(Algorithm).filter(Algorithm.is_default%20%3D%3D%20True).first()%20%20%20%20%23%20noqa)
Just a note for anyone wondering what # noqa
is. It suppreses the ruff linting error on this line. The reason for this is ruff wants to enforce the use of the is
instead of the ==
operator. But using is
doesn't seem to work when comparing SQL boolean values.
@cbrinson-rise8 one more small thing. Can you please add your name to the authors list!
Description
In models.py add new classes for storing data related to the available algorithms to run.
Related Issues
closes #13
Additional Notes
[Add any additional context or notes that reviewers should know about.]
Checklist
Please review and complete the following checklist before submitting your pull request:
Checklist for Reviewers
Please review and complete the following checklist during the review process: