mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
actual fix for source order
This commit is contained in:
@@ -147,7 +147,8 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
}.value
|
}.value
|
||||||
|
|
||||||
// insert chapter data
|
// insert chapter data
|
||||||
chapters.reversed().forEach { chapter ->
|
val chaptersLength = chapters.size
|
||||||
|
chapters.forEach { chapter ->
|
||||||
ChapterTable.insert {
|
ChapterTable.insert {
|
||||||
it[url] = chapter.url
|
it[url] = chapter.url
|
||||||
it[name] = chapter.name
|
it[name] = chapter.name
|
||||||
@@ -155,7 +156,7 @@ object ProtoBackupImport : ProtoBackupBase() {
|
|||||||
it[chapter_number] = chapter.chapter_number
|
it[chapter_number] = chapter.chapter_number
|
||||||
it[scanlator] = chapter.scanlator
|
it[scanlator] = chapter.scanlator
|
||||||
|
|
||||||
it[chapterIndex] = chapter.source_order
|
it[chapterIndex] = chaptersLength - chapter.source_order
|
||||||
it[ChapterTable.manga] = mangaId
|
it[ChapterTable.manga] = mangaId
|
||||||
|
|
||||||
it[isRead] = chapter.read
|
it[isRead] = chapter.read
|
||||||
|
|||||||
Reference in New Issue
Block a user