Skip to content

Commit

Permalink
chore: Run ruff check --fix for RUF021
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 25, 2024
1 parent f14cd55 commit 44bf21d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions data_registry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ def facet_counts(qs, key):
for row in without_filter(qs, args=False).values("active_job__date_from", "active_job__date_to"):
facets["date_ranges"][""] += 1
for value, limit in date_limits.items():
if (
row["active_job__date_from"]
and row["active_job__date_from"] >= limit
or row["active_job__date_to"]
and row["active_job__date_to"] >= limit
if (row["active_job__date_from"] and row["active_job__date_from"] >= limit) or (
row["active_job__date_to"] and row["active_job__date_to"] >= limit
):
facets["date_ranges"][value] += 1

Expand Down

0 comments on commit 44bf21d

Please sign in to comment.