Исправил рандом, хоть и не оптимально
This commit is contained in:
@@ -93,7 +93,7 @@ namespace JiraTimeBotForm.JiraIntegration
|
|||||||
{
|
{
|
||||||
var timeSpentJira = $"{taskTimeItem.Time.TotalMinutes}m";
|
var timeSpentJira = $"{taskTimeItem.Time.TotalMinutes}m";
|
||||||
|
|
||||||
var comment = _dummyComments.ElementAt(new Random(DateTime.Now.Millisecond).Next(_dummyComments.Count));
|
var comment = _dummyComments.OrderBy(f=>Guid.NewGuid()).FirstOrDefault();
|
||||||
if (addCommentsToWorklog)
|
if (addCommentsToWorklog)
|
||||||
{
|
{
|
||||||
comment = taskTimeItem.Description;
|
comment = taskTimeItem.Description;
|
||||||
|
|||||||
Reference in New Issue
Block a user