みてるぞ 2 weeks ago
parent
commit
4e5bd13ab4
2 changed files with 2 additions and 8 deletions
  1. +0
    -7
      consts.py
  2. +2
    -1
      models.py

+ 0
- 7
consts.py View File

@@ -1,13 +1,6 @@
from enum import Enum from enum import Enum




class AnswerType (Enum):
YOUTUBE_REPLY = 1
BLUESKY_REPLY = 2
YOUTUBE_SYSTEM = 3
BLUESKY_SYSTEM = 4


class Character (Enum): class Character (Enum):
DEERJIKA = 1 DEERJIKA = 1
GOATOH = 2 GOATOH = 2


+ 2
- 1
models.py View File

@@ -27,7 +27,6 @@ class Answer (Model):
query_id: int query_id: int
character: int character: int
content: str content: str
answer_type: int
sent_at: datetime sent_at: datetime


__timestamps__ = False __timestamps__ = False
@@ -60,7 +59,9 @@ class Query (Model):
model: int model: int
sent_at: datetime sent_at: datetime
answered: bool answered: bool
transfer_data: dict[str, str] | None


__casts__ = { 'transfer_data': 'json' }
__timestamps__ = False __timestamps__ = False


@property @property


Loading…
Cancel
Save