mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-11-14 08:12:13 +00:00
wip(db)!: insert scores using ScoreInsert dataclass
This commit is contained in:
@ -127,6 +127,19 @@ class Score:
|
||||
return DbScoreRow(*values)
|
||||
|
||||
|
||||
@dataclass(kw_only=True)
|
||||
class ScoreInsert:
|
||||
song_id: str
|
||||
rating_class: int
|
||||
score: int
|
||||
time: int
|
||||
pure: Optional[int] = None
|
||||
far: Optional[int] = None
|
||||
lost: Optional[int] = None
|
||||
max_recall: Optional[int] = None
|
||||
clear_type: Optional[int] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class DbCalculatedRow:
|
||||
id: int
|
||||
|
||||
Reference in New Issue
Block a user