Permalink
Browse files

Don't take into account revisions that don't have their dependencies …

…fulfilled when checking if a lane has pending work (when determining if a lane is old or not).
  • Loading branch information...
1 parent 7f3775a commit dbf05458b694e25485f1ce32eff3b1343b38a041 @rolfbjarne rolfbjarne committed Feb 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 MonkeyWrench.Web.WebService/WebServices.asmx.cs
@@ -1058,7 +1058,7 @@ public FrontPageResponse GetFrontPageData4 (WebServiceLogin login, int page_size
(
EXISTS (SELECT id FROM Revision WHERE date > @afterdate AND lane_id = Lane.id)
OR
- EXISTS (SELECT id FROM RevisionWork WHERE lane_id = Lane.id AND ((completed = TRUE AND endtime > @afterdate) OR (state <> 11 AND completed = FALSE)))
+ EXISTS (SELECT id FROM RevisionWork WHERE lane_id = Lane.id AND ((completed = TRUE AND endtime > @afterdate) OR (state <> 9 AND state <> 11 AND completed = FALSE)))
OR
NOT EXISTS (SELECT id FROM Revision WHERE lane_id = Lane.id)
OR

0 comments on commit dbf0545

Please sign in to comment.