Skip to content

Instantly share code, notes, and snippets.

@ArcticEcho
Created June 5, 2015 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArcticEcho/321d486a4f8d772d8bd4 to your computer and use it in GitHub Desktop.
Save ArcticEcho/321d486a4f8d772d8bd4 to your computer and use it in GitHub Desktop.
if (latestReview != null && latestReview.AuditPassed == false && (DateTime.UtcNow - latestReviewTimestamp).TotalMinutes > 1)
{
// We can be pretty sure they've been temporarily banned.
endSession();
return;
}
if (sessionReviews.Count + TodaysCVReviews.Count >= (reviewsAvailable > 1000 ? 40 : 20))
{
// They've ran out of reviews.
endSession();
return;
}
if ((DateTime.UtcNow - latestReviewTimestamp).TotalMinutes > 3)
{
// They've probably finished.
endSession();
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment