From 84774c7668f6dedab0de8a1dc8d0023a9e83ee43 Mon Sep 17 00:00:00 2001 From: Markus Date: Tue, 5 Feb 2019 21:40:42 +0000 Subject: [PATCH] added comment --- rcgcdw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index 5073b43..0d4e757 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -200,9 +200,9 @@ def webhook_formatter(action, STATIC, **params): additional_info_retrieved = False if urls is not None: logging.debug(urls) - if "-1" not in urls: # oage removed before we asked for it + if "-1" not in urls: # page removed before we asked for it img_info = next(iter(urls.values()))["imageinfo"] - embed["image"]["url"] = img_info[0]["url"] + "?version=" + "".join([x for x in img_info[0]["timestamp"] if x.isdigit()]) + embed["image"]["url"] = img_info[0]["url"] + "?version=" + "".join([x for x in img_info[0]["timestamp"] if x.isdigit()]) # prevent image from being cached additional_info_retrieved = True else: pass