From aad34a3e732775d737f057ed5b5184a78163a062 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Wed, 27 Jan 2021 11:44:13 +0800 Subject: [PATCH] fix wait --- worker/wait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/wait.py b/worker/wait.py index ab5eff4..c0f997b 100644 --- a/worker/wait.py +++ b/worker/wait.py @@ -17,7 +17,7 @@ class Ans(StdAns): m, s = divmod(float(resp['at']), 60) h, m = divmod(m, 60) # print("%02d:%02d:%02d" % (h, m, s)) - text = f"{resp['title_native']}\n{resp['title_chinese']}\nEP#{resp['episode']} {h:02.0f}:{m:02.0f}:{s:02.0f}\n{resp['similarity'][:5]} similarity" + text = f"{resp['title_native']}\n{resp['title_chinese']}\nEP#{resp['episode']} {h:02.0f}:{m:02.0f}:{s:02.0f}\n{int(resp['similarity']*100)}% similarity" msg = f"[CQ:video,file={video_url}]\n{text}" return msg \ No newline at end of file