Skip to content

Commit 0945cb7

Browse files
vishalshenoygithub-actions[bot]
authored andcommitted
Automated pre-commit update
1 parent 261755c commit 0945cb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/sqlalchemy_soft_delete/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The codemod processes your codebase in several steps:
1515
def should_process_join_call(call, soft_delete_models, join_methods):
1616
if str(call.name) not in join_methods:
1717
return False
18-
18+
1919
call_args = list(call.args)
2020
if not call_args:
2121
return False
22-
22+
2323
model_name = str(call_args[0].value)
2424
return model_name in soft_delete_models
2525
```
@@ -32,11 +32,11 @@ The codemod processes your codebase in several steps:
3232
def add_deleted_at_check(file, call, model_name):
3333
call_args = list(call.args)
3434
deleted_at_check = f"{model_name}.deleted_at.is_(None)"
35-
35+
3636
if len(call_args) == 1:
3737
call_args.append(deleted_at_check)
3838
return
39-
39+
4040
second_arg = call_args[1].value
4141
if isinstance(second_arg, FunctionCall) and second_arg.name == "and_":
4242
second_arg.args.append(deleted_at_check)

0 commit comments

Comments
 (0)