diff --git a/cl/recap/mergers.py b/cl/recap/mergers.py index fb304c2e56..d9cdb62da2 100644 --- a/cl/recap/mergers.py +++ b/cl/recap/mergers.py @@ -822,8 +822,8 @@ async def get_or_make_docket_entry( return de, de_created -async def clean_duplicate_documents(params:dict[str, Any]) -> RECAPDocument: - """ Removes duplicate RECAPDocuments, keeping the most recent with PDF if +async def clean_duplicate_documents(params: dict[str, Any]) -> RECAPDocument: + """Removes duplicate RECAPDocuments, keeping the most recent with PDF if available or otherwise the most recent overall. :param params: Query parameters to filter the RECAPDocuments.