Removed a piece of code that was needed for upgrading, since all beta users agreed to wipe db.
This commit is contained in:
parent
7d54923041
commit
876466d05b
1 changed files with 0 additions and 12 deletions
|
@ -261,18 +261,6 @@ namespace API.Services.Tasks
|
||||||
var chapter = info.IsSpecial ? volume.Chapters.SingleOrDefault(c => c.Range == info.Filename || (c.Files.Select(f => f.FilePath).Contains(info.FullFilePath)))
|
var chapter = info.IsSpecial ? volume.Chapters.SingleOrDefault(c => c.Range == info.Filename || (c.Files.Select(f => f.FilePath).Contains(info.FullFilePath)))
|
||||||
: volume.Chapters.SingleOrDefault(c => c.Range == info.Chapters);
|
: volume.Chapters.SingleOrDefault(c => c.Range == info.Chapters);
|
||||||
|
|
||||||
if (info.IsSpecial && chapter != null && chapter.Files.Count > 1)
|
|
||||||
{
|
|
||||||
var fileToKeep = chapter.Files.SingleOrDefault(f => f.FilePath == info.FullFilePath);
|
|
||||||
if (fileToKeep != null)
|
|
||||||
{
|
|
||||||
chapter.Files = new List<MangaFile>()
|
|
||||||
{
|
|
||||||
fileToKeep
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (chapter == null)
|
if (chapter == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue