mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-02 09:41:07 +00:00
fix message trunct
This commit is contained in:
parent
c63249b778
commit
19c853f07b
@ -248,7 +248,7 @@ class Reindex(ReindexBase):
|
|||||||
"""send notification back to task"""
|
"""send notification back to task"""
|
||||||
remaining = RedisQueue(index_config["queue_name"]).length()
|
remaining = RedisQueue(index_config["queue_name"]).length()
|
||||||
idx = total - remaining
|
idx = total - remaining
|
||||||
message = [f"Reindexing {name[0].title()}s {idx}/{total}"]
|
message = [f"Reindexing {name.title()}s {idx}/{total}"]
|
||||||
progress = idx / total
|
progress = idx / total
|
||||||
self.task.send_progress(message, progress=progress)
|
self.task.send_progress(message, progress=progress)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user