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
b247100167
commit
2725967df5
@ -118,6 +118,8 @@ async def search_online_setu(url: str):
|
|||||||
|
|
||||||
|
|
||||||
def get_setu(index: str, setu_data: dict, tag: str = None):
|
def get_setu(index: str, setu_data: dict, tag: str = None):
|
||||||
|
if not os.path.exists(IMAGE_PATH + path):
|
||||||
|
os.mkdir(IMAGE_PATH + path)
|
||||||
length = len(os.listdir(IMAGE_PATH + path))
|
length = len(os.listdir(IMAGE_PATH + path))
|
||||||
if length == 0:
|
if length == 0:
|
||||||
return None, None
|
return None, None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user