wip: chore

This commit is contained in:
2023-09-06 00:31:20 +08:00
parent fcc0d40d9a
commit 1955a7963a
8 changed files with 135 additions and 20 deletions

View File

@ -46,7 +46,7 @@ class ChartSelector(Ui_ChartSelector, QWidget):
def updateResultLabel(self):
chart = self.value()
if isinstance(chart, Chart):
pack = self.db.get_pack_by_id(chart.set)
pack = self.db.get_pack(chart.set)
texts = [
[
pack.name,

View File

@ -112,7 +112,7 @@ class SongIdSelector(Ui_SongIdSelector, QWidget):
isAppendPack = re.search(r"_append_.*$", pack.id)
if isAppendPack:
basePackId = re.sub(r"_append_.*$", "", pack.id)
basePackName = self.db.get_pack_by_id(basePackId).name
basePackName = self.db.get_pack(basePackId).name
packName = f"{basePackName} - {pack.name}"
else:
packName = pack.name