Skip to content

Commit

Permalink
Don't run missed quick scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 20, 2021
1 parent b665c70 commit 05f8424
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions Server/Services/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,7 @@ public async Task<List<ScriptRun>> GetPendingScriptRuns(string deviceId)
.Include(x => x.Devices)
.Include(x => x.DevicesCompleted)
.Where(scriptRun =>
scriptRun.RunOnNextConnect &&
dbContext.SavedScripts.Any(savedScript => savedScript.Id == scriptRun.SavedScriptId) &&
scriptRun.Devices.Any(device => device.ID == deviceId) &&
!scriptRun.DevicesCompleted.Any(deviceCompleted => deviceCompleted.ID == deviceId) &&
Expand Down
12 changes: 0 additions & 12 deletions Tests/ManualTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ public async Task CaptureTest()
_viewer.Dispose();
}

[TestMethod]
[Ignore("Manual test.")]
public async Task EncodingSizeTests()
{
await Task.Delay(5000);
var screen = _capturer.GetNextFrame();
//var a = ImageUtils.EncodeWithSkia(screen, SkiaSharp.SKEncodedImageFormat.Jpeg, 70);
//Debug.WriteLine("JPEG Size: " + a.Length.ToString("N0"));
//var b = ImageUtils.EncodeWithSkia(screen, SkiaSharp.SKEncodedImageFormat.Webp, 70);
//Debug.WriteLine("WEBP Size: " + b.Length.ToString("N0"));
}

[TestMethod]
[Ignore("Manual test.")]
public void EncodingTests()
Expand Down

0 comments on commit 05f8424

Please sign in to comment.