play work

This commit is contained in:
Steven Hildreth 2019-01-05 18:00:17 -06:00
parent c3da91765a
commit e8cfadb10c
2 changed files with 3 additions and 0 deletions

View file

@ -116,6 +116,8 @@ namespace Roadie.Library.Models.Pagination
public string FilterByGenre { get; set; }
public Guid?[] FilterToTrackIds { get; set; }
public bool IsHistoryRequest { get; set; }
public PagedRequest()
{ }

View file

@ -242,6 +242,7 @@ namespace Roadie.Api.Services
where (!request.FilterTopPlayedOnly || topTrackids.Contains(t.Id))
where (randomTrackIds == null || randomTrackIds.Contains(t.Id))
where (request.FilterToArtistId == null || request.FilterToArtistId != null && ((t.TrackArtist != null && t.TrackArtist.RoadieId == request.FilterToArtistId) || r.Artist.RoadieId == request.FilterToArtistId))
where (!request.IsHistoryRequest || t.PlayedCount > 0)
select new
{
ti = new