mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-02 10:24:35 -05:00
fix chapter restore order
This commit is contained in:
@@ -97,7 +97,7 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
backupManga: BackupManga,
|
backupManga: BackupManga,
|
||||||
backupCategories: List<BackupCategory>,
|
backupCategories: List<BackupCategory>,
|
||||||
categoryMapping: Map<Int, Int>
|
categoryMapping: Map<Int, Int>
|
||||||
) { // TODO
|
) {
|
||||||
val manga = backupManga.getMangaImpl()
|
val manga = backupManga.getMangaImpl()
|
||||||
val chapters = backupManga.getChaptersImpl()
|
val chapters = backupManga.getChaptersImpl()
|
||||||
val categories = backupManga.categories
|
val categories = backupManga.categories
|
||||||
@@ -147,7 +147,7 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
}.value
|
}.value
|
||||||
|
|
||||||
// insert chapter data
|
// insert chapter data
|
||||||
chapters.forEach { chapter ->
|
chapters.reversed().forEach { chapter ->
|
||||||
ChapterTable.insert {
|
ChapterTable.insert {
|
||||||
it[url] = chapter.url
|
it[url] = chapter.url
|
||||||
it[name] = chapter.name
|
it[name] = chapter.name
|
||||||
|
|||||||
Reference in New Issue
Block a user