Browse Source

細部

main
みてるぞ 1 week ago
parent
commit
3fd16bd1c2
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      config.py
  2. +5
    -1
      consts.py
  3. +1
    -1
      models.py

+ 1
- 1
config.py View File

@@ -3,7 +3,7 @@ from __future__ import annotations
import os import os
from typing import TypedDict from typing import TypedDict


from eloquent import DatabaseManager, Model
from eloquent import DatabaseManager, Model # type: ignore


CONFIG: dict[str, DbConfig] = { 'mysql': { 'driver': 'mysql', CONFIG: dict[str, DbConfig] = { 'mysql': { 'driver': 'mysql',
'host': 'localhost', 'host': 'localhost',


+ 5
- 1
consts.py View File

@@ -27,4 +27,8 @@ class QueryType (Enum):
YOUTUBE_COMMENT = 1 YOUTUBE_COMMENT = 1
BLUESKY_COMMENT = 2 BLUESKY_COMMENT = 2
YOUTUBE_SYSTEM = 3 YOUTUBE_SYSTEM = 3
BLUESKY_SYSTEM = 3
BLUESKY_SYSTEM = 4
KIRIBAN = 5
NICO_REPORT = 6
SNACK_TIME = 7
HOT_SPRING = 8

+ 1
- 1
models.py View File

@@ -2,7 +2,7 @@ from __future__ import annotations


from datetime import datetime from datetime import datetime


from eloquent import Model
from eloquent import Model # type: ignore


from .config import DB from .config import DB




Loading…
Cancel
Save