From afbcf2e9515b34272950924f172a91db178f64fc Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Fri, 20 Nov 2020 16:18:14 +0000 Subject: [PATCH] urban: use variable from previous commit in result formatting --- bot/urban.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/urban.py b/bot/urban.py index d7404ad..261b7e2 100644 --- a/bot/urban.py +++ b/bot/urban.py @@ -45,7 +45,7 @@ class Urban(Plugin): # Format and return result return '[{idx}/{len}] \x02{word}\x02: {definition} - {example}'.format( idx=index + 1, - len=len(data['list']), + len=res_length, word=res['word'], definition=res['definition'].replace('\r\n', ' '), example=res['example'].replace('\r\n', ' '),