From 86b10de94405f856efc2006b073b4d1cf09b40b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 6 Feb 2018 19:35:18 +0100 Subject: [PATCH] fix maybe? --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index f797932..5d6a6c0 100755 --- a/delojza.py +++ b/delojza.py @@ -87,7 +87,7 @@ def download_raw(url, filename, subdir, date): def get_first_hashtag(message): - hashtags = list(filter(lambda e: e.type == 'hashtag', message.entities + message.caption_entities)) + hashtags = list(filter(lambda e: e.type == 'hashtag', list(message.entities + message.caption_entities))) if len(hashtags) == 0: return None hashtag = message.parse_entity(hashtags[0])