File size: 699 Bytes
f46bcc2
6389c5c
f46bcc2
 
 
 
 
 
 
 
 
 
 
 
6389c5c
f46bcc2
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from pydantic import BaseModel
from typing import Optional

initial_info = {"done" : True,
                "score": 0, "count": 0,
                "best_score": 0, "best_time": float("inf"),
                "time": 0.0, "comment": "",
                "history": [],
                "candidates": ['1번', '2번', '3번', '4번']}

class Info(BaseModel):
    done: bool = True
    score: int = 0
    count: int = 0
    answer: Optional[str] = None
    best_score: int = 0
    best_time: float = float("inf")
    time: float = 0.0
    comment: str = ""
    history: list = []
    candidates: list = ['1번', '2번', '3번', '4번']
    name: str = None
    generations: list = []
    types: list = []