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 ()