fix: St3ScoreParser

This commit is contained in:
283375 2023-08-26 01:33:38 +08:00
parent de8efbeaf1
commit 5744aad8b6
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk
2 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
from .packlist import PacklistParser from .packlist import PacklistParser
from .songlist import SonglistDifficultiesParser, SonglistParser from .songlist import SonglistDifficultiesParser, SonglistParser
from .st3 import St3ScoreParser

View File

@ -11,7 +11,7 @@ class St3ScoreParser(ArcaeaParser):
def __init__(self, filepath): def __init__(self, filepath):
super().__init__(filepath) super().__init__(filepath)
def get_score_items(self) -> List[Score]: def parse(self) -> List[Score]:
items = [] items = []
with sqlite3.connect(self.filepath) as st3_conn: with sqlite3.connect(self.filepath) as st3_conn:
cursor = st3_conn.cursor() cursor = st3_conn.cursor()