add 事件广播
This commit is contained in:
@ -22,7 +22,7 @@ from app.utils.timer import TimerUtils
|
||||
|
||||
import warnings
|
||||
|
||||
from app.utils.types import EventType
|
||||
from app.schemas.types import EventType
|
||||
|
||||
warnings.filterwarnings("ignore", category=FutureWarning)
|
||||
|
||||
|
@ -13,7 +13,7 @@ from app.helper.cloudflare import under_challenge
|
||||
from app.log import logger
|
||||
from app.utils.http import RequestUtils
|
||||
from app.utils.site import SiteUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
SITE_BASE_ORDER = 1000
|
||||
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class DiscuzUserInfo(ISiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class FileListSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class GazelleSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class IptSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -7,7 +7,7 @@ from lxml import etree
|
||||
from app.log import logger
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class NexusPhpSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -3,7 +3,7 @@ import re
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import SITE_BASE_ORDER
|
||||
from app.plugins.sitestatistic.siteuserinfo.nexus_php import NexusPhpSiteUserInfo
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class NexusProjectSiteUserInfo(NexusPhpSiteUserInfo):
|
||||
|
@ -7,7 +7,7 @@ from lxml import etree
|
||||
from app.log import logger
|
||||
from app.plugins.sitestatistic.siteuserinfo import SITE_BASE_ORDER
|
||||
from app.plugins.sitestatistic.siteuserinfo.nexus_php import NexusPhpSiteUserInfo
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class NexusRabbitSiteUserInfo(NexusPhpSiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class SmallHorseSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -5,7 +5,7 @@ from typing import Optional
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class TNodeSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class TorrentLeechSiteUserInfo(ISiteUserInfo):
|
||||
|
@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.plugins.sitestatistic.siteuserinfo import ISiteUserInfo, SITE_BASE_ORDER
|
||||
from app.utils.string import StringUtils
|
||||
from app.utils.types import SiteSchema
|
||||
from app.schemas.types import SiteSchema
|
||||
|
||||
|
||||
class Unit3dSiteUserInfo(ISiteUserInfo):
|
||||
|
Reference in New Issue
Block a user