みてるぞ 3 weeks ago
parent
commit
d46fe05b42
3 changed files with 3 additions and 1 deletions
  1. +1
    -0
      __init__.py
  2. +1
    -1
      models.py
  3. +1
    -0
      queries_to_answers.py

+ 1
- 0
__init__.py View File

@@ -0,0 +1 @@
from . import config, consts, models

+ 1
- 1
models.py View File

@@ -4,7 +4,7 @@ from datetime import datetime

from eloquent import Model

from .config import DB
from config import DB


class AnsweredFlag (Model):


+ 1
- 0
queries_to_answers.py View File

@@ -60,6 +60,7 @@ def add_answer (
def add_answered_flags (
answer: Answer,
) -> None:
print (answer.answer_type)
if answer.answer_type in [AnswerType.YOUTUBE_REPLY]:
add_answered_flag (answer, Platform.YOUTUBE)
if answer.answer_type in [AnswerType.BLUESKY_REPLY]:


Loading…
Cancel
Save