From 00cd5096835e927ace4bacb6480e570e46ea46da Mon Sep 17 00:00:00 2001 From: ned Date: Thu, 22 Jun 2023 22:57:36 +0200 Subject: [PATCH] image type default value --- bot/plugins/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/plugins/images.py b/bot/plugins/images.py index d0d52ce..152b254 100644 --- a/bot/plugins/images.py +++ b/bot/plugins/images.py @@ -37,7 +37,7 @@ class ImageSearchPlugin(Plugin): kwargs['query'], region="wt-wt", safesearch='off', - type_image=kwargs['type'], + type_image=kwargs.get('type', 'photo'), ) results = list(islice(ddgs_images_gen, 1)) return {"result": results[0]["image"]}