[Model] Fixed order of chapters when a manga is added (reversed by default)

This commit is contained in:
Valery Febvre
2019-03-30 23:23:54 +01:00
parent 85e093c3d3
commit c5f5c9c87c

View File

@@ -160,7 +160,7 @@ class Manga(object):
for rank, chapter_data in enumerate(chapters):
chapter = Chapter.new(chapter_data, rank, self.id)
chapter.manga = self
self.chapters.append(chapter)
self.chapters = [chapter, ] + self.chapters
if not os.path.exists(self.resources_path):
os.makedirs(self.resources_path)