From d1e44db91af310a704881ece5e71aca9427fbb98 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Thu, 17 May 2018 13:03:24 +0100 Subject: [PATCH] Fixed #2257 --- src/Ombi.Schedule/Processor/ChangeLogProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ombi.Schedule/Processor/ChangeLogProcessor.cs b/src/Ombi.Schedule/Processor/ChangeLogProcessor.cs index 37e10a620..e645097ef 100644 --- a/src/Ombi.Schedule/Processor/ChangeLogProcessor.cs +++ b/src/Ombi.Schedule/Processor/ChangeLogProcessor.cs @@ -90,15 +90,15 @@ namespace Ombi.Schedule.Processor } - return TransformUpdate(release); + return TransformUpdate(release,!masterBranch); } - private UpdateModel TransformUpdate(Release release) + private UpdateModel TransformUpdate(Release release, bool develop) { var newUpdate = new UpdateModel { - UpdateVersionString = release.Version.Substring(1,8), + UpdateVersionString = develop ? release.Version : release.Version.Substring(1,8), UpdateVersion = release.Version == "(unreleased)" ? 0 : int.Parse(release.Version.Substring(1, 5).Replace(".", "")), UpdateDate = DateTime.Now, ChangeLogs = new List(),