Skip to content

Commit

Permalink
Replace != None -> isnot(None) more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Mar 25, 2024
1 parent 4dead75 commit e96bb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawlers/mooncrawl/mooncrawl/moonworm_crawler/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def add_events_to_session(
)
.filter(
label_model.label == label_name,
label_model.log_index != None,
label_model.log_index.isnot(None),
exists().where(
label_model.transaction_hash == hashes_cte.c.transaction_hash
),
Expand Down

0 comments on commit e96bb59

Please sign in to comment.