Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent 9f74cc1 commit 2755d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cl/recap/mergers.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,9 +829,9 @@ async def keep_latest_rd_document(queryset: QuerySet) -> RECAPDocument:
:param params: RECAPDocument QuerySet to clean duplicates from.
:return: The matched RECAPDocument after cleaning.
"""
rd_with_pdf_queryset = queryset.filter(
is_available=True
).exclude(filepath_local="")
rd_with_pdf_queryset = queryset.filter(is_available=True).exclude(
filepath_local=""
)
if await rd_with_pdf_queryset.aexists():
rd = await rd_with_pdf_queryset.alatest("date_created")
else:
Expand Down

0 comments on commit 2755d0e

Please sign in to comment.