fix message trunct

This commit is contained in:
simon 2023-03-23 12:20:12 +07:00
parent c63249b778
commit 19c853f07b
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ class Reindex(ReindexBase):
"""send notification back to task"""
remaining = RedisQueue(index_config["queue_name"]).length()
idx = total - remaining
message = [f"Reindexing {name[0].title()}s {idx}/{total}"]
message = [f"Reindexing {name.title()}s {idx}/{total}"]
progress = idx / total
self.task.send_progress(message, progress=progress)