mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update data_source.py
This commit is contained in:
parent
00b674cebb
commit
616f215075
@ -160,7 +160,7 @@ async def get_setu_list(
|
|||||||
index: Optional[int] = None, tags: Optional[List[str]] = None, r18: int = 0
|
index: Optional[int] = None, tags: Optional[List[str]] = None, r18: int = 0
|
||||||
) -> "list, int":
|
) -> "list, int":
|
||||||
if index:
|
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:
|
if index < 0 or index > image_count:
|
||||||
return [f"超过当前上下限!({image_count})"], 999
|
return [f"超过当前上下限!({image_count})"], 999
|
||||||
image_list = [await Setu.query_image(index, r18=r18)]
|
image_list = [await Setu.query_image(index, r18=r18)]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user