mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-04-22 02:30:18 +00:00
Compare commits
No commits in common. "1ec302d98c5815474f9d06c8933ad9f501d60408" and "3d6e5f997e12cf6d786cac2d94b327fdf7912fb5" have entirely different histories.
1ec302d98c
...
3d6e5f997e
2
index.py
2
index.py
@ -68,7 +68,7 @@ if __name__ == "__main__":
|
||||
|
||||
databaseChecker = DatabaseChecker()
|
||||
databaseChecker.setWindowIcon(QIcon(":/images/icon.png"))
|
||||
databaseCheckResult = databaseChecker.confirmDb() if Settings().databaseUrl() else 0
|
||||
databaseCheckResult = databaseChecker.confirmDb()
|
||||
|
||||
if not databaseCheckResult & DatabaseCheckerResult.Initted:
|
||||
result = databaseChecker.exec()
|
||||
|
@ -28,21 +28,17 @@ class RemoveDuplicateScoresModel(QStandardItemModel):
|
||||
chart = (
|
||||
session.query(Chart)
|
||||
.where((Chart.song_id == songId) & (Chart.rating_class == ratingClass))
|
||||
.first()
|
||||
.one()
|
||||
)
|
||||
song = session.query(Song).where(Song.id == songId).first()
|
||||
song = session.query(Song).where(Song.id == songId).one()
|
||||
difficulty = (
|
||||
session.query(Difficulty)
|
||||
.where(
|
||||
(Difficulty.song_id == songId)
|
||||
& (Difficulty.rating_class == ratingClass)
|
||||
)
|
||||
.first()
|
||||
.one()
|
||||
)
|
||||
|
||||
if chart is None and song is None and difficulty is None:
|
||||
chart = Chart(song_id=songId, rating_class=ratingClass, set="unknown")
|
||||
|
||||
item.setData(chart, self.ChartRole)
|
||||
item.setData(song, self.SongRole)
|
||||
item.setData(difficulty, self.DifficultyRole)
|
||||
|
Loading…
x
Reference in New Issue
Block a user