This commit is contained in:
HibiKier
2022-08-21 13:37:03 +08:00
parent 40fed798a1
commit 7efcff13bb
37 changed files with 1977 additions and 967 deletions
@@ -1,4 +1,4 @@
from typing import Optional, List
from typing import Optional, List, Tuple
from datetime import datetime
from services.db_context import db
@@ -113,7 +113,7 @@ class OmegaPixivIllusts(db.Model):
return bool(query)
@classmethod
async def get_keyword_num(cls, tags: List[str] = None) -> "int, int, int":
async def get_keyword_num(cls, tags: List[str] = None) -> Tuple[int, int, int]:
"""
说明:
获取相关关键词(keyword, tag)在图库中的数量