Download tasks/codeql_python_benchmark51_v2/pyvul-9dcb85347ac437354c6f/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-9dcb85347ac437354c6f/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_python_benchmark51_v2/pyvul-9dcb85347ac437354c6f/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-9dcb85347ac437354c6f/patch.diff
769 Bytes
| diff --git a/ihatemoney/models.py b/ihatemoney/models.py | |
| index fe7b519..5691c75 100644 | |
| --- a/ihatemoney/models.py | |
| +++ b/ihatemoney/models.py | |
| class Person(db.Model): | |
| def get_by_name(self, name, project): | |
| return ( | |
| Person.query.filter(Person.name == name) | |
| - .filter(Project.id == project.id) | |
| + .filter(Person.project_id == project.id) | |
| .one() | |
| ) | |
| class Person(db.Model): | |
| project = g.project | |
| return ( | |
| Person.query.filter(Person.id == id) | |
| - .filter(Project.id == project.id) | |
| + .filter(Person.project_id == project.id) | |
| .one() | |
| ) | |