From 8e1d305b4ab1346ef2d2faf6eacda440674b06e8 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sat, 21 Dec 2024 20:07:23 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=BC=E3=81=A1=E3=81=BC=E3=81=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consts.py | 11 +++++++++++ queries_to_answers.py | 9 ++------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 consts.py diff --git a/consts.py b/consts.py new file mode 100644 index 0000000..4b2896a --- /dev/null +++ b/consts.py @@ -0,0 +1,11 @@ +from enum import Enum + + +class Character (Enum): + DEERJIKA = 1 + GOATOH = 2 + + +class Platform (Enum): + YOUTUBE = 1 + BLUESKY = 2 diff --git a/queries_to_answers.py b/queries_to_answers.py index 356f3f7..0ae9a8b 100644 --- a/queries_to_answers.py +++ b/queries_to_answers.py @@ -2,12 +2,12 @@ from __future__ import annotations import random from datetime import datetime -from enum import Enum from typing import cast -from eloquent import DatabaseManager, Model +from eloquent import DatabaseManager, Model # type: ignore from config import CONFIG +from consts import Character from models import Answer, Query, User from talk import Talk @@ -55,10 +55,5 @@ def main ( query.save () -class Character (Enum): - DEERJIKA = 1 - GOATOH = 2 - - if __name__ == '__main__': main ()