From 733041013e9204bebc4165238653b4f28e6c9fa1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Apr 2022 13:15:17 +0100 Subject: [PATCH] Line counter --- webapp_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp_utils.py b/webapp_utils.py index fae6ca662..2c8ca2c25 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -1693,7 +1693,7 @@ def html_common_emoji(base_dir: str, no_of_emoji: int) -> str: ctr = 0 html_str = '' while ctr < no_of_emoji and line_ctr < len(common_emoji): - emoji_name = common_emoji[ctr].split(' ')[1].replace('\n', '') + emoji_name = common_emoji[line_ctr].split(' ')[1].replace('\n', '') emoji_filename = base_dir + '/emoji/' + emoji_name + '.png' if os.path.isfile(emoji_filename): # NOTE: deliberately no alt text, so that without graphics only