From 616f21507507ecd7eff23b6256351dc861d934d9 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Thu, 9 Sep 2021 22:49:45 +0800 Subject: [PATCH] Update data_source.py --- plugins/send_setu/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/send_setu/data_source.py b/plugins/send_setu/data_source.py index 1184eee3..36712e66 100644 --- a/plugins/send_setu/data_source.py +++ b/plugins/send_setu/data_source.py @@ -160,7 +160,7 @@ async def get_setu_list( index: Optional[int] = None, tags: Optional[List[str]] = None, r18: int = 0 ) -> "list, int": if index: - image_count = await Setu.get_image_count(r18) + image_count = await Setu.get_image_count(r18) - 1 if index < 0 or index > image_count: return [f"超过当前上下限!({image_count})"], 999 image_list = [await Setu.query_image(index, r18=r18)]