refactor: make clear message more clear
This commit is contained in:
parent
3bd2a7bee7
commit
d18145f1c5
1 changed files with 2 additions and 2 deletions
|
|
@ -450,7 +450,7 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
summary = ", ".join(deleted_titles[:5])
|
summary = ", ".join(deleted_titles[:5])
|
||||||
if deleted_count > 5:
|
if deleted_count > 5:
|
||||||
summary += ", ..."
|
summary += ", ..."
|
||||||
LOG.info(f"Bulk cleared {deleted_count} history item(s): {summary}")
|
LOG.info(f"Cleared '{deleted_count}' items. {summary}")
|
||||||
|
|
||||||
return {"deleted": deleted_count}
|
return {"deleted": deleted_count}
|
||||||
|
|
||||||
|
|
@ -469,7 +469,7 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
title="History Cleared",
|
title="History Cleared",
|
||||||
message=f"Cleared {deleted_count} item{'s' if deleted_count != 1 else ''} from history.",
|
message=f"Cleared {deleted_count} item{'s' if deleted_count != 1 else ''} from history.",
|
||||||
)
|
)
|
||||||
LOG.info(f"Bulk cleared {deleted_count} history item(s) by status '{status_filter}'.")
|
LOG.info(f"Cleared '{deleted_count}' items. Filter '{status_filter}'.")
|
||||||
return {"deleted": deleted_count}
|
return {"deleted": deleted_count}
|
||||||
|
|
||||||
items = await self.done.get_many_by_status(status_filter)
|
items = await self.done.get_many_by_status(status_filter)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue